I have a page base class (.NET4):
public class SitePageBase : System.Web.UI.Page
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
}
}
And derived class
public partial class WebsitePage : SitePageBase
{
protected void Page_Load(object sender, EventArgs e)
{
// some processing
}
}
I checked the "Page_Load" in derived class only works if the "base.OnLoad(e)" is there on the base class's OnLoad event handler. Otherwise the "Page_Load" in derived class not get fired at all.
Can any one tell me, why this is happening?
P.S. The AutoEventWireup is set to true.