I am going to pass string value between pages.
The value contains “&” character.
Since the values are split using “&”, so the value is chopped.
How can I escape this special character?
I am going to pass string value between pages. The value contains & character.
Share
use URL encoding…
for ex: if you want ‘&’ .. use ‘& amp;’ (no spaces)
Recommended way is to use
method which does this for you.
Documentation at
http://msdn.microsoft.com/en-us/library/system.uri.escapeuristring%28v=VS.95%29.aspx