Sunday, August 30, 2009

How to get the Application Path in C# - ASP.Net

1) HttpContext.Current.Request.Url.Host
- Displays the Host Name

2) HttpContext.Current.Request.Url.Port
- Displays the Port of the Application

3) HttpContext.Current.Request.ApplicationPath
- Displays the Application Path

No comments: