Friday, December 31, 2010

Request.Url - Asp.Net Path Details

Hi all. Returned back to the blogging world after nearly a year! Welcome back!
And Happy New Year 2011.
Here is my self-note to save my day googling!

Request.Url
Full URL : http://localhost:2000/virtual_dir/myrep/page.aspx?q=qvalue
Request.ApplicationPath :/virtual_dir
Request.CurrentExecutionFilePath :/virtual_dir/myrep/page.aspx
Request.FilePath :/virtual_dir/myrep/page.aspx
Request.Path :/virtual_dir/myrep/page.aspx
Request.PhysicalApplicationPath d:\Inetpub\wwwroot\Websitename\virtual_dir\
Request.QueryString :/virtual_dir/myrep/page.aspx?q=qvalue
Request.Url.AbsolutePath :/virtual_dir/myrep/page.aspx
Request.Url.AbsoluteUri :
http://localhost:2000/virtual_dir/myrep/page.aspx?q=qvalue
Request.Url.Host :localhost
Request.Url.Authority :localhost:2000
Request.Url.LocalPath :/virtual_dir/myrep/page.aspx
Request.Url.PathAndQuery :/virtual_dir/myrep/page.aspx?q=qvalue
Request.Url.Port :2000
Request.Url.Query :?q=qvalue
Request.Url.Scheme :http
Request.Url.Segments :/virtual_dir/
myrep/
page.aspx

Source: http://www.xcess.info/request_url_parameters_details_asp_net_aen.aspx

Popular Posts

Recent Articles