title: getting absolute path in c# for navigation
body: <p>I have created an MVC app in c#, It has different menus and sub-menus.
  The problem I am facing is that of navigation ,
  the routing link looks like this</p>
  
  <pre><code>http://localhost/menu/1
  http://localhost/submenu/5
  http://localhost/submenu3/1
  </code></pre>
  
  <p>I cant just hardcore links in the menu <code>href</code> , therefore I was looking for some command to give me absolute path that is <code>http://localhost</code> so that I can use that for making dynamic navigation, In PHP it was quite simpler by using <code>$_SERVER</code> variable but I am unable to fnd any function here.</p>
  
  <pre><code>Server.MapPath("/") gives me my local drive address where it is stored.
  </code></pre>
  
  <p>Any help in this regard will be appreciated.</p>