J
JB
My problem:
I have an abstract class that implements an Interface:
abstract class ReportBase: IReport
{
..... Constructor and Code....
}
On a user control I try to have it's class derive from the
ReportBase base class:
public class sqlsample : System.Web.UI.UserControl,
ReportBase
{
..... Code.....
}
WHen I compile I get the following error on the user
control (on the line referencing ReportBase):
sqlsample.ascx.cs(18): 'ReportBase' : type in interface
list is not an interface
I thought that in C#, this is how I derive from a base.
the error message looks like it is expects ReportBase to
be an interface...
Is there a different way of referencing a base class in
ASP.NET? I cannot find any help on that message. Has
anyone ran into that problem before?
Thanks! JB.
I have an abstract class that implements an Interface:
abstract class ReportBase: IReport
{
..... Constructor and Code....
}
On a user control I try to have it's class derive from the
ReportBase base class:
public class sqlsample : System.Web.UI.UserControl,
ReportBase
{
..... Code.....
}
WHen I compile I get the following error on the user
control (on the line referencing ReportBase):
sqlsample.ascx.cs(18): 'ReportBase' : type in interface
list is not an interface
I thought that in C#, this is how I derive from a base.
the error message looks like it is expects ReportBase to
be an interface...
Is there a different way of referencing a base class in
ASP.NET? I cannot find any help on that message. Has
anyone ran into that problem before?
Thanks! JB.