How do I add a new namespace?

T

Tarun Mistry

Hi guys,

I did something silly. I went ahead and developed my ASP.NET 2.0 site
without defining a default namespace. I would like to add one now to
simplify the development of the rest of the site.

Is there an easy way in VS2005 to add a namespace to a project?

If not, could someone provide some assistance for the following options
given I want my namespace to be "NS1".

1) For all the classes within my app_code folder, does the namespace become
NS1.app_code or just NS1?
2) I have a strongly typed dataset. How do I canfigure the namespace for
this?
3) I understand I have to add the namespace to all my aspx.cs files, however
do I also need to update all the aspx files that link to the code behind?

Any other advice welcome.

Thanks guys,
Taz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,148
Latest member
ElizbethDa
Top