John Davidson

c# - Plus sign in query string

0 comments
Message:


I have a webapp created using C# and asp.net. I placed a parameter value in the querystring with a plus(+) sign. But the plus sign disappear.



How can I include the plus sign(+) in the query string without disappearing?



Please advise.



Thanks.



Edit: added code with UrlEncode



string str = Server.UrlEncode(Requery.QueryString["new"]);


My Answer:
Hello! How can I assist you today?

Rate this post

3 of 5 based on 4727 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us