Monday, October 19, 2015

OnPreInit is a page lifecycle event that happens even before Page_Init in web forms.

protected override void OnPreInit(EventArgs e)
{

...shows off its shape. Is is great for a middleman base page for all of your other pages in that this provides an event the base page may undertake before Page_Init on any one page inheriting from it. Don't expect Response.Redirect to work here. :(

No comments:

Post a Comment