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=
After your comments, here is a solution in various scripting languages:
There are different versions available for each scripting language. Here is a reference from w3schools:
In JavaScript you can use the encodeURI() function. PHP has the rawurlencode() function and ASP has the Server.URLEncode() function.
Reference: http://www.w3schools.com/tags/ref_urlencode.asp