How to get the class name of an aspx page inside a user control?

I would like to determine the class name of an aspx page from a user control. How can i do this?

+4
source share
3 answers
this.Page.GetType().AssemblyQualifiedName 
+8
source

Page.GetType (); BaseType.Name.

It gives the class name of the page.

Page.GetType (); BaseType.FullName.

It gives you a class name with a namespace.

+8
source

I cannot come up with a usage example, but try:

 string name = Page.GetType().Name; 
+5
source

All Articles