A
Alan Silver
Hello,
I have a set of user controls that all use the same code-behind file.
The first line of each of the ascx files looks like...
<%@ CodeFile="ShowCategory.cs" Language="C#" Inherits="ShowCategory" %>
and the top of the code-behind (ignoring the "using" statements) looks
like...
namespace MyECommClasses {
public partial class ShowCategory : UserControl {
However, when I try to run this site, VWD gives me the following error
in the code-behind file...
"Make sure that the class defined in this code file matches the
'inherits' attribute, and that it extends the correct base class (e.g.
Page or UserControl)."
As you can see, the inherits class matches the one in the class file, so
it seems that it thinks that I'm not extending the right base class.
However, one of the ones it suggests is "UserControl" which is what I do
extend.
Any ideas? TIA
I have a set of user controls that all use the same code-behind file.
The first line of each of the ascx files looks like...
<%@ CodeFile="ShowCategory.cs" Language="C#" Inherits="ShowCategory" %>
and the top of the code-behind (ignoring the "using" statements) looks
like...
namespace MyECommClasses {
public partial class ShowCategory : UserControl {
However, when I try to run this site, VWD gives me the following error
in the code-behind file...
"Make sure that the class defined in this code file matches the
'inherits' attribute, and that it extends the correct base class (e.g.
Page or UserControl)."
As you can see, the inherits class matches the one in the class file, so
it seems that it thinks that I'm not extending the right base class.
However, one of the ones it suggests is "UserControl" which is what I do
extend.
Any ideas? TIA