1,Request.Url.AbsoluteUri;  //获取绝对url,即url的全路径例如请求的url是http://www.wutong.com/listbjcity.aspx?nnn=1,那AbsoluteUri的值就是http://www.wutong.com/listbjcity.aspx?nnn=1。常用

2,Request.Url.AbsolutePath;   //实例:http://www.wutong.com/listbjcity.aspx获取到的就是/listbjcity.aspx,http://www.wutong.com/listbjcity.aspx?sss=1获取到的还是/listbjcity.aspx

3,Request.Url.Host;    //获取主机部分,一般不会用

4,Request.Url.Authority;   //获取DNS,ip和端口号

posted on 2014-04-11 17:05  学到老死  阅读(1661)  评论(0)    收藏  举报