传值失败帮看一下 http://localhost/test/View.aspx?Fid=7&NkeMu=思想政治&NTiXi=填空题&KeMu=4取NTiXi值的时候显示 填空?KeMu=4为什么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>web.config里加 中文最好编后後传Server.HtmlEncode()//编码Server.HtmlDecode()//解码 "http://localhost/test/View.aspx?Fid=7&NkeMu=" + System.Web.HttpUtility.UrlEncode("思想政治") + "&NTiXi=" + System.Web.HttpUtility.UrlEncode("填空题") + "&KeMu=4"; 赋值的时候编码string s = "http://localhost/test/View.aspx?Fid=7&NkeMu=" + Server.UrlEncode("思想政治" + "&NTiXi=" + Server.UrlEncode("填空题") + "&KeMu=4";取值的时候解码string s1 = Server.UrlDecode(Request.QueryString["NkeMu"]); 赋值的时候编码string s = "http://localhost/test/View.aspx?Fid=7&NkeMu=" + Server.UrlEncode("思想政治") + "&NTiXi=" + Server.UrlEncode("填空题") + "&KeMu=4";取值的时候解码string s1 = Server.UrlDecode(Request.QueryString["NkeMu"]);string s2 = Server.UrlDecode(Request.QueryString["NTixi"]);Response.Write(s1 + " " + s2); TreeView里的菜单显示/隐藏问题 读取用户信息的问题 关于跨服务器truncate table问题---欢迎抢分 谁有好的UBB代码啊 ajax.net 1.0 问题 请教Asp.NET 2.0下的JAVA问题 一个很奇怪的问题... asp.net 点击页面按钮执行了服务器上的exe,但是在exe里读写的操作却不能进行,如何解决? 怎样得到数据库image类型字段的大小? 图片上传 div不能完全覆盖Dropdownlist的问题 如何知道某条记录在dataset中的位置
Server.HtmlDecode()//解码
System.Web.HttpUtility.UrlEncode("思想政治") + "&NTiXi=" +
System.Web.HttpUtility.UrlEncode("填空题") + "&KeMu=4";
string s = "http://localhost/test/View.aspx?Fid=7&NkeMu=" + Server.UrlEncode("思想政治" + "&NTiXi=" + Server.UrlEncode("填空题") + "&KeMu=4";取值的时候解码
string s1 = Server.UrlDecode(Request.QueryString["NkeMu"]);
string s1 = Server.UrlDecode(Request.QueryString["NkeMu"]);
string s2 = Server.UrlDecode(Request.QueryString["NTixi"]);
Response.Write(s1 + " " + s2);