Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Sir,

Error message raise
while I send address with symbols(special characters) in Query string?


Example :I will Pass my QueryString streetAddress="#10-Cross Road, &India(near Tamil Nadu)";


How to solve this message

Please Tell Me?
Posted
Updated 24-Jan-12 17:50pm
v3

Hi,
To avoid this matter, you have to use Url encode method.
VB
NavigateUrl = www.xxxx.com? + Server.UrlEncode("query string parameters")


for more information about URL encode

http://msdn.microsoft.com/en-us/library/zttxte6w.aspx[^]

Hope this will help.
 
Share this answer
 
You need to URLEncode[^] the url.

Remarks from the link - URL encoding ensures that all browsers will correctly transmit text in URL strings. Characters such as a question mark (?), ampersand (&), slash mark (/), and spaces might be truncated or corrupted by some browsers. As a result, these characters must be encoded in <a> tags or in query strings where the strings can be re-sent by a browser in a request string.


Hope this helps! :thumbsup:
 
Share this answer
 
You need to Encrypt the URL

you can use base64string to pass querystring parameters..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900