Friday, October 10, 2008

Working with ASP.NET Request URL Properties.

Let assume below is the Web URL:
http://localhost:5555/ISV/Customizations/Default.aspx?orgname=microsoftcrm

HttpRequest path and URL properties:

Request.ApplicationPath:/ISV
Request.CurrentExecutionFilePath:/ISV/Customizations/Default.aspx
Request.FilePath:/ISV/Customizations/Default.aspx
Request.Path:/ISV/Customizations/Default.aspx
Request.PathInfo:
Request.PhysicalApplicationPath:D:\Inetpub\wwwroot\ISV\Customizations\
Request.QueryString:/ISV/Customizations/Default.aspx?orgname=microsoftcrm
Request.Url.AbsolutePath:/ISV/Customizations/Default.aspx
Request.Url.AbsoluteUri:http://localhost:5555/ISV/Customizations/Default.aspx?orgname=microsoftcrm
Request.Url.Fragment:
Request.Url.Host:localhost
Request.Url.Authority:localhost:5555
Request.Url.LocalPath:/ISV/Customizations/Default.aspx
Request.Url.PathAndQuery:/ISV/Customizations/Default.aspx?orgname=microsoftcrm
Request.Url.Port:5555
Request.Url.Query:?orgname=microsoftcrm
Request.Url.Scheme:http
Request.Url.Segments:/ISV/Customizations/Default.aspx

Hope this post is useful for all you !!!!

No comments: