Query strings with special characters

后端 未结 3 900
醉梦人生
醉梦人生 2020-12-07 03:14

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=         


        
3条回答
  •  佛祖请我去吃肉
    2020-12-07 03:53

    Use 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;

    here
    

提交回复
热议问题