title: How do I get the complete virtual path of an ASP.NET application
body: <p>How do I know the the complete virtual path that my application is currently hosted? For example:</p>
  
  <pre><code>http://www.mysite.com/myApp
  </code></pre>
  
  <p>or</p>
  
  <pre><code>http://www.mysite.com/myApp/mySubApp
  </code></pre>
  
  <p>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?</p>