PC Review


Reply
Thread Tools Rate Thread

Current namespace /class

 
 
Islam Elkhayat
Guest
Posts: n/a
 
      12th Feb 2005
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??


 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      12th Feb 2005
Assuming you are inside a method in your webform, you can use:

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

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 02:50:35 +0200, "Islam Elkhayat"
<(E-Mail Removed)> wrote:

>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??
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The type or namespace name 'Generic' does not exist in the class or namespace 'System.Collections' pantagruel Microsoft C# .NET 1 23rd Oct 2007 12:07 AM
The type or namespace 'Installer' does not exist in the class or namespace 'System.Configuration' John Chrisman Microsoft C# .NET 2 18th Nov 2005 11:24 PM
Current namespace /class Islam Elkhayat Microsoft ASP .NET 1 12th Feb 2005 02:22 AM
Reading the current Namespace.Class, Assemble at runtime Mike Walters Microsoft VB .NET 1 3rd Aug 2004 02:57 PM
Determining the current procedure name and the namespace for the class it is in roddles Microsoft VB .NET 1 27th Feb 2004 03:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:49 AM.