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
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
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
{
}
}
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that was it thanks