Link to home
Start Free TrialLog in
Avatar of sbornstein2
sbornstein2

asked on

Namespace Question - Cannot Convert

Hello all.  I have a page where (this) is referenced.  I get an error that says cannot convert MyNameSpace.NewBase to  MyNameSpace.Base.  But my page is saying NewBase.  I had copied a cs file and just renamed the Base to NewBase.  I checked through the page but I dont know where that is erroring out.  Any idea?  Thanks all
Avatar of gbzhhu
gbzhhu
Flag of United Kingdom of Great Britain and Northern Ireland image

If you just renamed the file name in the solution explorer then you need to rename the namespace right at top of the cs file from Base to NewBase
Avatar of sbornstein2
sbornstein2

ASKER

ya but the namespace is MyNameSpace so that has not changed is looks like this:


namespace MyNameSpace
{

      public class NewBase : System.Web.UI.Page
      {

                }

}

the file I copied from was:

namespace MyNameSpace
{

      public class Base : System.Web.UI.Page
      {

                }

}
ASKER CERTIFIED SOLUTION
Avatar of Thogek
Thogek
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that was it thanks