Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change Solution and related projects Namespace.

Posted on 2006-10-20
3
Medium Priority
?
235 Views
Last Modified: 2008-02-01
Hi you experts.
I have developed a web application that has a few projects including a web site.
Can i change the Namespace of the solution and of all related projects?


Thank you all in advance.
0
Comment
Question by:adktd
3 Comments
 
LVL 20

Accepted Solution

by:
REA_ANDREW earned 80 total points
ID: 17772950
As long as after changing these, everything has the correct references. For Example

say you have a class with NameSpace CodeOne

namespace CodeOne
{
    /// <summary>
    /// Summary description for Class1
    /// </summary>
    public class Class1
    {
        public void TestIt()
        {

        }
    }
}

    protected void Page_Load(object sender, EventArgs e)
    {
        CodeOne.Class1 BB = new CodeOne.Class1();
        BB.TestIt();
    }


If I change the namepsace of the class to CodeTwo then I need to reflect this in my code behind file like so

    protected void Page_Load(object sender, EventArgs e)
    {
        CodeTwo.Class1 BB = new CodeOne.Class1();
        BB.TestIt();
    }

Otherwise you lose your reference

:-)

Andrew
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question