I have a page with links on it. If you click on one of the links it calls another page that processes the querystring by using the Request.QueryString method. The url is the following:
http://localhost:8081/handleEvent.aspx?Action=ViewProduct&ProductID=0001
As you can see I should have 2 keys but when I do the following:
testlabel.Text = CStr(Request.QueryString("Action"))
The result is:
ViewProduct&ProductID=0001
So the hexadecimal is getting processed to the &, but it is not seperating it as a seperate key. Also if I try a Request.QueryString("ProductID") it acts like that key doesnt exist, which is probably why the above result happens.
How do I correct this so I can access the values by checking the keys? I could always parse it like a string, but that is a little bit annoying.
Thanks
http://localhost:8081/handleEvent.aspx?Action=ViewProduct&ProductID=0001
As you can see I should have 2 keys but when I do the following:
testlabel.Text = CStr(Request.QueryString("Action"))
The result is:
ViewProduct&ProductID=0001
So the hexadecimal is getting processed to the &, but it is not seperating it as a seperate key. Also if I try a Request.QueryString("ProductID") it acts like that key doesnt exist, which is probably why the above result happens.
How do I correct this so I can access the values by checking the keys? I could always parse it like a string, but that is a little bit annoying.
Thanks