Each part of the request URL obtained by ASP. NET
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. aspixels/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