当前位置: 代码迷 >> ASP.NET >> 怪事 怪事,该如何处理
  详细解决方案

怪事 怪事,该如何处理

热度:939   发布时间:2013-02-25 00:00:00.0
怪事 怪事
http://localhost:668/Member/Login.aspx?url=http://localhost:668/StaticShop/shop_2/admin/CN/MySupplyList/search_MySupplyList?entid=223&entCategoryId=7365


为什么?
Request.QueryString["url"]取出来的值是http://localhost:668/StaticShop/shop_2/admin/CN/MySupplyList/search_MySupplyList?entid=223

&和后面的参数都没了,是什么回事??

------解决方案--------------------------------------------------------
啊呀!url是一个参数,取出来的就是url=后面的内容,“&”以后就是另外一个参数啦,要用Request.QueryString["entCategoryId"]来取的

忽略了吧
------解决方案--------------------------------------------------------
你需要对url编码:
Server.UrlEncode("你的url");

然后取出时解码。这样Request.QueryString["url"]取的值才对。
  相关解决方案