Solved

Change Solution and related projects Namespace.

Posted on 2006-10-20
3
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 20

Accepted Solution

by:
REA_ANDREW earned 20 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 88
ASP.NET Built-In Report Creator / Viewer 5 41
ASP.NET data base connection 35 95
I need help writing Unit Tests for my ASP.Net MVC application 5 40
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

751 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