Using auto-generated event handler in both class and it's superclass
- by abatishchev
I have a abstract class:
public abstract class MySuperControl : UserControl
{
protected void Page_PreRender(object sender, EventArgs e)
{
// do something in super
}
}
and a class that is code-behind for a designed UserControl:
public partial class MyControl : MySuperControl
{
protected void Page_PreRender(object sender, EventArgs e)
{
// do something in class
}
}
how do declare both of them to nest automated call?