asp.net request获取url各个部分

it2022-05-05  74

地址:http://localhost:1897/News/Press/Content.aspx /123?id=1#tocRequest.ApplicationPath/Request.PhysicalPath(请求的物理文件名称)D:\Projects\Solution\web\News\Press\Content.aspxRequest.PhysicalApplicationPathD:\Projects\Solution\web\Request.CurrentExecutionFilePath/News/Press/Content.aspxRequest.FilePath/News/Press/Content.aspxRequest.Path/News/Press/Content.aspx/123Request.RawUrl/News/Press/Content.aspx/123?id=1Request.Url.AbsolutePath/News/Press/Content.aspx/123Request.Url.AbsoluteUrihttp://localhost:1897/News/Press/Content.aspx/123?id=1Request.Url.SchemehttpRequest.Url.HostlocalhostRequest.Url.Port1897Request.Url.Authoritylocalhost:1897Request.Url.LocalPath/News/Press/Content.aspx/123Request.PathInfo/123Request.Url.PathAndQuery/News/Press/Content.aspx/123?id=1Request.Url.Query?id=1Request.Url.Segments/News/Press/Content.aspx/123

转载于:https://www.cnblogs.com/wakintech/archive/2011/06/10/2077509.html

相关资源:asp.net Request获取url信息的各种方法比较

最新回复(0)