I have an HttpHandler that reads the parameters from the request URL by simply using context.Request[“param1”]. The thing is that my website is xHTML compliant so all links are encoded. So I have a link in the format of: http://mydomain.com/?param1=a¶m2=b.
The problem is that Request[“param2”] is not recognized. Instead it thinks the second parameter is “amp;param2”. It does not realize that the & is representing & in the URL. How would I tell “Request” that the links are expected to be xHTML compliant?
You need to UrlEncode your links, not HTMLEncode.
The first one gives
& = %26while the latter (the one you’re using) gives& = &and the handler is breaking the parameters by the first & in&