title: asp.net: refer to a page relative to root in normal non-server-side html controls
body: <p>I've a page that is deeply nested. And one that is in the root path. Inside of the deeply nested page I have an anchor tag which is supposed to navigate to another page (which is not in the root, but it is easy to specify a root relative path).</p>
  
  <p>I've done the following trying to specify a root relative path:</p>
  
  <p><code>&lt;a href="~/home/main.aspx"&gt;Home&lt;/a&gt;</code> -> This one gives me a 404 error. It is not able to resolve <code>~</code> part to the root path. </p>
  
  <p>The other option is to travel one directory up:</p>
  
  <p><code>&lt;a href="../../../home/main.aspx"&gt;Home&lt;/a&gt;</code> -> This is headache. </p>
  
  <p>Then I tried this:</p>
  
  <p><code>&lt;a href="/home/main.aspx"&gt;Home&lt;/a&gt;</code> -> This gave me a 404 again. It simply removed what came after the <code>localhost:&lt;port_number&gt;/</code> part and affixed it with <code>/home/main.aspx</code>. </p>
  
  <p>What is the way to specify a root relative path here?</p>
  
  <p>PS: I assume the root relative path will resolve for server controls</p>