I want to get the type of the "BasePage" object that I am creating. Each page object is based on BasePage. For example, I have Login.aspx and my code and class that has a Display method:
Display(BasePage page) { ResourceManager manager = new ResourceManager(page.GetType()); }
In my project structure, I have a default resource file and psuedo-translation resource file. If I installed try something like this:
Display(BasePage page) { ResourceManager manager = new ResourceManager(typeof(Login)); }
it returns the translated page. After some research, I found that page.GetType (). ToString () returned something to the action "ASP_login.aspx". How can I get the actual code behind the class type to get an object of type Input that comes from BasePage?
Thanks in advance!
Adam driscoll
source share