Using auto-generated event handler in both class and it's superclass
Posted
by abatishchev
on Stack Overflow
See other posts from Stack Overflow
or by abatishchev
Published on 2010-04-05T22:07:55Z
Indexed on
2010/04/05
22:13 UTC
Read the original article
Hit count: 330
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?
© Stack Overflow or respective owner