I write a Base Web User Control which contains several public properties and
a Inherited Web User Control which only have some codes in new method. When
I use the Inherited Web User Control on Web Form, I don't know why the
Inherited Web User Control have not any properties inherited from Base Web
User Control.
How should I do?
The based web user control as:
using System;
....
....
namespace xxxx.UserContro ls
{
public class SystemTableDrop DownListBase : System.Web.UI.U serControl
{
public SystemTableDrop DownListBase() : base ()
{
...
}
public override void DataBind()
{
...
}
...
// Properties
public string ViewName
{
...
}
public string DataTextField
{
...
}
...
}
}
The Inherited Web User Control as:
namespace xxxx.UserContro ls
{
public class xxxxDropDownLis t : SystemTableDrop DownListBase
{
public xxxxDropDownLis t() : base()
{
ViewName = "vstSalutation" ;
}
}
a Inherited Web User Control which only have some codes in new method. When
I use the Inherited Web User Control on Web Form, I don't know why the
Inherited Web User Control have not any properties inherited from Base Web
User Control.
How should I do?
The based web user control as:
using System;
....
....
namespace xxxx.UserContro ls
{
public class SystemTableDrop DownListBase : System.Web.UI.U serControl
{
public SystemTableDrop DownListBase() : base ()
{
...
}
public override void DataBind()
{
...
}
...
// Properties
public string ViewName
{
...
}
public string DataTextField
{
...
}
...
}
}
The Inherited Web User Control as:
namespace xxxx.UserContro ls
{
public class xxxxDropDownLis t : SystemTableDrop DownListBase
{
public xxxxDropDownLis t() : base()
{
ViewName = "vstSalutation" ;
}
}