Home > Net >  Aspx. Cs how to obtain the address bar of the parameter is not garbled in Chinese
Aspx. Cs how to obtain the address bar of the parameter is not garbled in Chinese

Time:09-15

For example, in chrome browser address bar, type localhost: 10000/ABC. Aspx? Name=hello, could you tell me how the corresponding aspx. Cs extract to the Chinese, not garbled

CodePudding user response:

System. Web. HttpUtility. UrlDecode (Request/" name ");
System. Web. HttpContext. Server. UrlDecode (Request/" name ");

CodePudding user response:

Request. The QueryString (" name ")

CodePudding user response:

To use transcoding 1, 2 merger can '

CodePudding user response:

The 1st floor should be ok

CodePudding user response:

The URL to encode
  • Related