Given the url, I should know that the page type is at that url. For example, let's say I have a couple of pages.
public partial class FirstPage : System.Web.UI.Page { }
public partial class SecondPage : MyCustomPageType { }
I would like to be able to call the method as follows with the following results:
GetPageTypeByURL("first.aspx"); //"FirstPage"
GetPageTypeByURL("second.aspx"); //"SecondPage"
Is it possible? How can i do this?
source
share