Current namespace /class

  • Thread starter Thread starter Islam Elkhayat
  • Start date Start date
I

Islam Elkhayat

How can i get my current Namespace & current class in my webform... I tried
alot but i get ASP.myformname_aspx...
Is there a way to get Current Namespace, class??
 
Assuming you are inside a method in your webform, you can use:

Type type = this.GetType();
string nameSpace = type.Namespace;

HTH,
 
Back
Top