title: Hyperlink relative to current URL not path of user control
body: <p>I have a page on my site, for purposes of this example lets say <a href="http://myhost/Pages/Default.aspx" rel="nofollow noreferrer">http://myhost/Pages/Default.aspx</a>.  On Default.aspx I have a user control called MyControl.ascx which lives in /Controls/MyControl.ascx. So the tree looks something like this</p>
  
  <ul>
  <li>Root
  <ul>
  <li>Pages
  <ul>
  <li>Default.aspx</li>
  </ul>
  </li>
  <li>Controls
  <ul>
  <li>MyControl.ascx</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  
  <p>Whenever I place a HyperLink control on MyControl.ascx and specify a NavigateUrl, this path is relative to the control, not the URL of the page. So for instance if in NavigateUrl I specified "AboutMe.aspx", the URL would be rendered as <a href="http://myhost/Controls/AboutMe.aspx" rel="nofollow noreferrer">http://myhost/Controls/AboutMe.aspx</a> instead of <a href="http://myhost/Pages/AboutMe.aspx" rel="nofollow noreferrer">http://myhost/Pages/AboutMe.aspx</a>. Is there any way I can make this relative to the page URL? I've tried the solution here: <a href="https://stackoverflow.com/questions/2604636/relative-path-from-an-asp-net-user-control-navigateurl">Relative path from an ASP.NET user control NavigateUrl</a> but it didn't work for me.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>To clarify, I'd like this to be generic enough so that if I didn't know what the path was the solution would work.  So I don't really want to harcode "~/Pages/Default.aspx" in the NavigateUrl</p>