Asp. NET gets the various parts of the request URL
Website: Http://localhost:1897/News/Press/Content.aspx/123?id=1#toc |
Request.applicationpath |
/ |
Request.PhysicalPath |
D:\Projects\Solution\web\News\Press\Content.aspx |
System.IO.Path.GetDirectoryName (Request.PhysicalPath) |
D:\Projects\Solution\web\News\Press |
Request.physicalapplicationpath |
D:\Projects\Solution\web\ |
System.IO.Path.GetFileName (Request.PhysicalPath) |
Content.aspx |
Request.currentexecutionfilepath |
/news/press/content.aspx |
Request.filepath |
/news/press/content.aspx |
Request.path |
/news/press/content.aspx/123 |
Request.rawurl |
/news/press/content.aspx/123?id=1 |
Request.Url.AbsolutePath |
/news/press/content.aspx/123 |
Request.Url.AbsoluteUri |
Http://localhost:1897/News/Press/Content.aspx/123?id=1 |
Request.Url.Scheme |
http |
Request.Url.Host |
localhost |
Request.Url.Port |
1897 |
Request.Url.Authority |
localhost:1897 |
Request.Url.LocalPath |
/news/press/content.aspx/123 |
Request.pathinfo |
/123 |
Request.Url.PathAndQuery |
/news/press/content.aspx/123?id=1 |
Request.Url.Query |
? id=1 |
Request.Url.Fragment |
|
Request.Url.Segments |
/ news/ press/ content.aspx/ 123 |
Asp. NET gets the various parts of the request URL