web.config中修改下面内容:(中文参数最好使用gb2312)
<globalization requestEncoding="gb2312" requestEncoding="gb2312" fileEncoding="gb2312" />

在cs文件里传参的时候用UrlEncode:
Response.Redirect("B.aspx?Name="+Server.UrlEncode(Name));
接参的时候用UrlDecode:
Response.Write(Server.UrlDecode(Request.QueryString["Name"]));

脚本儿里传参的时候用escape:
location.href = "B.aspx?Name="+escape(Name);
接参的时候仍然用UrlDecode:
Response.Write(Server.UrlDecode(Request.QueryString["Name"]));

相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2021-08-10
  • 2022-12-23
  • 2021-07-29
  • 2022-01-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案