Request 的 URL 和 Path-Url、RawUrl、UrlReferrer 的区别

作者:vkvi 来源:ITPOW(原创) 日期:2010-2-21

Request.Url

System.Uri 类型。指当前页面完整的 URL。

示例:http://localhost:8080/test/Default.aspx?a=1&b=2

Request.RawUrl

string 类型。指当前页面从 URL 根路径开始计算的字符串,包含查询字符串。

示例:/test/Default.aspx?a=1&b=2

Request.UrlReferrer

System.Uri 类型。指来源页面完整的 URL。

更详细的内容,请参见:ASP.NET 的区别 Request.RawUrl、Request.Url

相关文章