1.首先应该
1.设置web.config文件。
<system.web>
......
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" />
......
</system.web>
或者:
aspx文件中:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

2.进行传递的页面
string name= "中文参数";
Response.Redirect("A.aspx?name="+Server.UrlEncode(name));

3.进行接受参数的页面
string name= Request.QueryString["name"];
Response.Write(Server.UrlDecode(name));


以上中文传参问题就可以解决了,主要就是在传递的过程进行编码工作而在接受的时候再进行一次解码就OK了。

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2021-07-31
  • 2022-12-23
  • 2021-05-19
  • 2021-09-14
  • 2021-07-19
猜你喜欢
  • 2021-10-16
  • 2021-06-18
  • 2021-06-09
  • 2021-11-10
  • 2021-06-15
  • 2022-01-07
相关资源
相似解决方案