How I can pass a query string with special characters?
For example I need to pass "&" inside my query string as below:
../solrresults.asp?mode=search&data=M & S
See Question&Answers more detail:osHow I can pass a query string with special characters?
For example I need to pass "&" inside my query string as below:
../solrresults.asp?mode=search&data=M & S
See Question&Answers more detail:osUse Server.UrlEncode
:
URLEncode converts characters as follows: Spaces ( ) are converted to plus signs (+). Non-alphanumeric characters are escaped to their hexadecimal representation.
Use it this way;
<a href="page2.asp?name=<%= Server.URLEncode(sName) %>">here</a>