So I have this code where it gets data from parameter provided by a .ashx file but It always returns ""
whenever executed although it has parameter in it.
URL I'm working with looks like
http://localhost:21614/AlbumManager.aspx?mp3=AudioHandler.ashx?ID=ACHI-0001
and the code used to get the ID inside the .ashx file looks like
public void ProcessRequest (HttpContext context) {
string ID = context.Request.QueryString["ID"];
}
Is there anything I missed in order to get the parameter?
APPEND: 01/01/2018 (10:50 UTC+0) So the problem here is that I use this site as a reference for my codes and I tweaked it a little bit so it reads the the ID as a string (which is the datatype used in my SQL) but it never returns the parameter provided in the URL.
I also realized that when I hover the .QueryString
from the code it stores {Id=}
even when I changed the Id
to data
or such