title: Get Page's Type from URL in C#
body: <p>Given a URL, I have to be able to know what the page's Type is that resides at that URL. For example, lets say I have a couple pages.</p>
  
  <pre><code>//first.aspx
  public partial class FirstPage : System.Web.UI.Page { }
  
  //second.aspx
  public partial class SecondPage : MyCustomPageType { }
  </code></pre>
  
  <p>I would like to be able to call a method in the following manner with the following results:</p>
  
  <pre><code>GetPageTypeByURL("first.aspx");     //"FirstPage"
  GetPageTypeByURL("second.aspx");        //"SecondPage"
  </code></pre>
  
  <p>Is this possible? How can I do this?</p>