在客户端传递中文编码:
在客户端使用
escape()方法对要传递的中文编码

<script>
    var strEN="中文" ;
    window.location.href="Test.aspx?StrValue="escape(strEN);
</script>
在服务器端解码的代码如下:
在服务器端添加引用:Microsoft.JScript
string strEN=Microsoft.JScript.GlobalObject.unescape(Request["StrValue"].Trim());

在服务器端传递中文:

string name = "中文参数";
response.redirect("B.aspx?"+(Server.UrlDecode(name));

接收:

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-08-31
  • 2022-02-08
相关资源
相似解决方案