Request.url请求路径的一些属性

Request.url请求路径的一些属性
1,Request.UrlReferrer.AbsolutePath=获取URL的绝对路径
例:"/Manager/Module/OfficialManage/Issuedadocument/Issuedadocument_WorkNew.aspx"

2,Request.UrlReferrer.AbsoluteUri=获取绝对URL
例:"http://localhost:2855/Manager/Module/OfficialManage/Issuedadocument/Issuedadocument_WorkNew.aspx?FormID=1&FlowID=1"

3,Request.UrlReferrer.Authority=获取域名的主机名和端口号
例:"localhost:2855"

4,Request.UrlReferrer.DnsSafeHost(Host)=获得安全的主机名
例:"localhost"

5,Request.UrlReferrer.OriginalString=获取原始的路径
例:"http://localhost:2855/Manager/Module/OfficialManage/Issuedadocument/Issuedadocument_WorkNew.aspx?FormID=1&FlowID=1"

6,Request.UrlReferrer.PathAndQuery=获取主机绝对路径加查询条件
例:"/Manager/Module/OfficialManage/Issuedadocument/Issuedadocument_WorkNew.aspx?FormID=1&FlowID=1"

7,Request.UrlReferrer.Port=端口
例:2855

8,Request.UrlReferrer.Query=查询条件
例:"?FormID=1&FlowID=1"

上一篇:Canvas: Out of system resources


下一篇:jquery cookie问题