I am using a base page to derive most of my pages so that I can group common code.
The problem is that on one of my pages the Page_PreInit() event does not fire with the consequence that variables which I expect to be initialised are not.
Is this the correct way to call PreInit() and Init() methods in my base class?
namespace MyApp.Bll
{
public class BasePage : System.Web.UI.Page
{
protected void Page_PreInit(object sender, EventArgs e)
{
doBasePagePreInit();
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
doBasePageOnInit();
}
}
} ...
Go to the complete details ...