首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

怪事 怪事,该如何处理

2012-05-16 
怪事 怪事http://localhost:668/Member/Login.aspx?urlhttp://localhost:668/StaticShop/shop_2/admin/CN

怪事 怪事
http://localhost:668/Member/Login.aspx?url=http://localhost:668/StaticShop/shop_2/admin/CN/MySupplyList/search_MySupplyList.html?entid=223&entCategoryId=7365


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

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

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

忽略了吧
[解决办法]
你需要对url编码:
Server.UrlEncode("你的url");

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

热点排行