Best Practice: Relative URL
<p>What is the best way/best practice to get a url relative to the current page?</p>

<p>string url = Request.ApplicationPath + "/MyFolder/MyFile.aspx";</p>

<p>or</p>

<p>string url = Page.ResolveURL("~/MyFolder/MyFile.aspx");</p>

<p>I have been using the previous method, but there was a question posted earlier today <a href="http://stackoverflow.com/questions/1464907/relative-path-from-a-root-operator-address-in-code-behind">Relative path from a root operator (”~”) address in code behind</a> that made me wonder if what i was doing was the best way.</p>
