How do I get the complete virtual path of an ASP.NET application
How do I know the the complete virtual path that my application is currently hosted? For example: http://www.mysite.com/myApp or http://www.mysite.com/myApp/mySubApp I know the application path of HttpRequest but it only returns the folder name that my application is currently hosted, but how do I get the initial part? The domain name part of the path is not really a property of the application itself, but depends on the requesting URL. You might be able to reach a single Web site from many different host names. To get the domain name associated with the current request , along with the