How to decode special character in Request.QueryString?
I am passing '© Alt+ 0169' in my serach fields in query string.
When i am getting QueryString in page like Request.QueryString("Sear开发者_如何学GochVal") then value will be : '© Alt 0169' .
It reomove '+'.
Could u tell me how can i get it..
Thanks Pankaj Pareek
Use System.Web.HttpUtility.UrlEncode()
method.
string encode = HttpUtility.UrlEncode("© Alt+ 0169");
Response.Redirect("Page1.aspx?searchVal=" + encode);
精彩评论