S
Sami Rehman
Hi
I want to use namespaces to organize all the classes, web forms, and user
controls. It works fine with my user defined classes, but when I try to put
all the web pages in a namespace for example
namespace myCompany. MyApp.Web
{
}
the page starts throwing error, and rightly so because, its a partial class
public partial class _Default : System.Web.UI.Page
and the other part of it is not in the same namespace. The error message in
VS is
Error 1 Make sure that the class defined in this code file matches the
'inherits' attribute, and that it extends the correct base class
Is there anyway around this problem.
-Sami
I want to use namespaces to organize all the classes, web forms, and user
controls. It works fine with my user defined classes, but when I try to put
all the web pages in a namespace for example
namespace myCompany. MyApp.Web
{
}
the page starts throwing error, and rightly so because, its a partial class
public partial class _Default : System.Web.UI.Page
and the other part of it is not in the same namespace. The error message in
VS is
Error 1 Make sure that the class defined in this code file matches the
'inherits' attribute, and that it extends the correct base class
Is there anyway around this problem.
-Sami