title: How to get the base URL of the website VB.NET
body: <p>I may not be the first person to ask this question but I can't find what I was looking for after looking around. 
  I want to get base URL from the URL. I have tried</p>
  
  <pre><code>    HttpContext.Current.Request.Url.AbsoluteUri
  </code></pre>
  
  <p>It would return me the full URL </p>
  
  <pre><code>    http://localhost:59112/Resources/VideoPlayer.aspx?ID=resources1.mp4
  </code></pre>
  
  <p>I would just need until here (e.g.) </p>
  
  <pre><code>    http://localhost:59112/
  </code></pre>
  
  <p>Thanks for your help.</p>