I have a requirement where I have to pass some values into the next page via querystring. This querystring is coming from third party and they need to have it on the otherpage for some analysis.
I just do a response.redirect and add the querystring that i recieve from them to the other page. My problem is that the .net environment is encoding/encrypting some of the special characters used by them which I dont want as it does not bring back the correct values in the new page.
Example:
passed url :
abcd.efgh=testing|value1=rtedf%20value2%202010-04-07%207pm|value3=aaaa
This gets changed to
abcd.efgh=testing|value1%3drtedf+value2+2010-04-07+7pm|value3%3daaaa
It looks like "=" becomes "%3d" and "%20" a space becomes "+"
How can I stop the encoding of url a开发者_开发问答nd pass it in its original form.
Your querystrings are being URL encoded. This is standard behaviour due to how URLs should be formatted. What you need to do on the receiving page is to use UrlDecode in order to get back to your original string.
This is not called encryption, it is url-encoding and is an HTTP requirement.
You cannot stop ASP.NET and you should really not try stopping it!
精彩评论