My page url is very simple EmailToFriend.aspx?PID=5&Lang=en-US
string _pid= Server.UrlDecode(Request.QueryString["PID"]);
string _lang = Server.UrlDecode(Request.QueryString["Lang"]);
result:
_pid=5
_lang= null
I am trying to get QueryString value of both PID and Lang but it return null for lang value while it is present in the url i.e= en-US
While debugging i noticed that it show url as PID=5&%3bLang=en-US for following line of code
string _lang = Server.UrlDecode(Request.QueryString["Lang"]);
I am not sure what is wrong and why it is showing %3b in place of ;
How can i resolve this so that i get the value for QueryString lang
If i use only & in my url then it works fine with request["lang"]; problem only happens when i encode url & try to decode it back
article reference http://msdn.microsoft.com/en-us/library/6196h3wt%28v=vs.110%29.aspx
doesn't work for me..