Hi,
In my inline .aspx page, I want to override the pre-init event.
How can I do this?
is it:
void pre_init(object sender)
?
Update This is a user control
Hi,
In my inline .aspx page, I want to override the pre-init event.
How can I do this?
is it:
void pre_init(object sender)
?
Update This is a user control
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
}
Have a look at this MSDN page for an overview of the page life cycle and a description of all events you can handle.
In your page you can start typing "protected override", hit enter or tab to complete, hit space, and intellisense will give a list of all the stuff you can override. If you pick one from the list it will generate the
base.myOverriddenMethod(e);
etc..