ASP.Net and GetType()

后端 未结 4 1937
花落未央
花落未央 2021-01-12 18:44

I want to get a type of a \"BasePage\" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a clas

4条回答
  •  有刺的猬
    2021-01-12 19:37

    After some additional research I found that if I call Page.GetType().BaseType it returns the code-behind type of the Aspx page.

提交回复
热议问题