关于得到页面地址的问题
"http://localhost/hangyu/aspx/cn/cn_index_product_WebForm.aspx?sort=大圆球 "
这是IE地址栏上显示的地址,我现在用this.Page.Request.Url.ToString();只能获得http://localhost/hangyu/aspx/cn/cn_index_product_WebForm.aspx,请问什么什么办法能够获得sort的值?
谢谢!
[解决办法]
不可能吧?
[解决办法]
Response.Write(Request.Url.ToString());
[解决办法]
为什么我得到了?
[解决办法]
你在哪儿写的Response.Write?
[解决办法]
…… 难道你要用Request.QueryString[ "sort "] 得值?
Request.Url.ToString());返回的是带sort后面参数的。这个方法没错。
[解决办法]
LZ,使用这种方法来获取sort的值不是正道
还是去研究一下如何取值的好