By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,214 Members | 2,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,214 IT Pros & Developers. It's quick & easy.

Is it something wrong to have a namespace

P: n/a
Hi All,

True that I am too late to start a project with ASP.NET 2.0.. I am just
struggling a bit at the start here.. I have a post here already on a similar
topic.. but I thought to have a fresh question..

Is it not recomended/ not needed to have a namespace for web pages in a
ASP.NET web site project??

Thanks,
Nirosh
Jun 6 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Nirosh,

It is not needed at all. When you add a new page, control, etc, Visual
Studio gives it a unique name based on the filename under the covers.
Visual Studio also creates a root namespace to apply to the project.

Hope this helps,
Steve

"Nirosh" <Ni****@News.Comwrote in message
news:uc**************@TK2MSFTNGP05.phx.gbl...
Hi All,

True that I am too late to start a project with ASP.NET 2.0.. I am just
struggling a bit at the start here.. I have a post here already on a
similar topic.. but I thought to have a fresh question..

Is it not recomended/ not needed to have a namespace for web pages in a
ASP.NET web site project??

Thanks,
Nirosh

Jun 6 '07 #2

P: n/a
Nirosh,

Also, if you wish to view the namespaces set up, you can do so in
Intellisense. All ASP.NET web site projects start with the namespace
Global.

Start typing "Global." and "Global.ASP." and you should see the class
hierarchy in Intellisense.

Hope this helps,
Steve

"Nirosh" <Ni****@News.Comwrote in message
news:uc**************@TK2MSFTNGP05.phx.gbl...
Hi All,

True that I am too late to start a project with ASP.NET 2.0.. I am just
struggling a bit at the start here.. I have a post here already on a
similar topic.. but I thought to have a fresh question..

Is it not recomended/ not needed to have a namespace for web pages in a
ASP.NET web site project??

Thanks,
Nirosh

Jun 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.