ITeye博客

asp.net request 传中文乱码

devilhand · 2009-12-31 15:35 · ASP.NET · 编程语言 · Markdown

传递:
Response.Redirect("show.aspx?id="+ HttpUtility.UrlEncode("中国"));

接收:
String sGet = HttpUtility.UrlDecode(Request.QueryString["id"]);
Response.write(strGetString)

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。