I think what he wants is how to figure out the namespace of the current
project... I been trying to figure that out myself. In asp.net 1.1 all we
had to do is open up a codebehind file or select the project from the
solution explorer and click the properties button in the solution explorer.
The window showed a property called "default namespace" which gave us the
namespace of the project.
How do we do this in asp.net 2.0 using c#?
"Karl Seguin [MVP]" wrote:
Not sure if this is what you're asking for, but given an instance of a
class, you can get the Type and then the namespace, ala:
User user = new User();
user.GetType().Namespace
Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Xavier" <Xa****@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com... hello,
i used in all classes of the app_code files a individual Namespace, for
example
Namespace MyApp1Namespace
.......
How can i get programmatically the name of this Namespace.
best regards