如题,把中文编码后POST传递。
地址为:http://127.0.0.1/main.aspx?u_name=%e6%88%91%e6%98%af%e5%bc%a0%e4%b8%89 关闭浏览器打开地址栏发现URL地址: http://127.0.0.1/main.aspx?u_name=我是张三救助!!!
地址为:http://127.0.0.1/main.aspx?u_name=%e6%88%91%e6%98%af%e5%bc%a0%e4%b8%89 关闭浏览器打开地址栏发现URL地址: http://127.0.0.1/main.aspx?u_name=我是张三救助!!!
解决方案 »
- AutoCompleteExtender 属性问题 在线等!!!!!
- gridview里文件下载
- 为什么浏览器关闭后cookie的值就消失了呢?
- 中断的项目的继续开发问题
- 我Global.asax里该怎样访问在项目里的resource文件夹下的counter.TXT文件?
- Access数据库的相对路径问题!就在oleDbConnection1的ConnectionString属性里面解决问题!
- 孟子E章请进!
- 如何调用我的类库!!
- 如何在客戶端輸入一段url將服務器的ie打開 並開啟所輸入的url地址?
- 我的递归老是无法成功执行
- asp.net 打开新窗口的方法,window.open 会被IE 禁用
- 新手问题 <如何再转换为<
之后游览器会将原来的链接变为:http://127.0.0.1/main.aspx?u_name=我是张三
现在想让它保持编码后的传值。
变为:http://127.0.0.1/main.aspx?u_name=我是张三
http://www.baidu.com/s?wd=%C4%E3%BA%C3&word=%C4%E3%BA%C3&tn=sitehao123地址栏没有将wd=%C4%E3%BA%C3 变为wd=你好 ASP.NET就会呢?
简单的加密 :Response.Redirect("main.aspx?u_name=" + Server.UrlEncode("我是张三"));
解密: string name= Server.UrlDecode(Request.QueryString["u_name"]);
简单的加密 :Response.Redirect("main.aspx?u_name=" + Server.UrlEncode("我是张三"));
解密: string name= Server.UrlDecode(Request.QueryString["u_name"]);
如果是IE浏览器的话 查看-->编码-->选一个