URL Summary Summary

xiaoxiao2021-03-06  86

1. Set the web.config file. (I don't like setting it))

......

......

or:

ASPX file:

2. Before passing the Chinese, the Chinese parameter to be passed is encoded, and decoded again when receiving. >> Transfer

String name = "Chinese parameters";

Response.Redirect ("B.ASPX? Name =" Server.urlencode (Name));

>> Receive

String name = request.QueryString ["name"];

Response.write (Server.urldecode (Name));

or:

NavigateURL = '<% # "Webform2.aspx? Singer =" httputility.urlencode ("Chinese", System.Text.Encoding.getencoding ("GB2312")%>'

3. If it is to pass the Chinese parameter from the .html file (ie, the URL conversion is not made from the back office). The passing Chinese parameter is to be encoded, and decoded again when receiving.

>> Transfer