Can I programatically find the url of a web form based on the class?
<p>If I have a web form in e.g. ~/Page1.aspx, that implements the Page1 class defined in the code behind file, is there any way that I programatically can determine the URL (~/Page1.asp) based on the type; something like</p>

<pre><code>string url = GetUrlOfWebForm(typeof(Page1));
</code></pre>

<p>Or perhaps from an instance of the class</p>

<pre><code>string url = GetUrlOfWebForm(new Page1());
</code></pre>

<p>So any code that links to the page will be updated if the page is moved/renamed, or I get a compile time error if the page is removed.</p>
