Any one could simply tell me what does base.OnPreInit(e) mean ?
Thank you
The OnPreInit method is called at the beginning of the page initialization stage.
When you are overriding this in your page, you'll have something like
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
...
// do something else
}
where base.OnPreInit(e) calls the Page class's OnPreInit().
If you don't have extra functionality to add to your page then you don't have to override OnPreInit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With