Question about OnInit(EventArgs e) function in ASP.Net

kpao

Active member
Joined
Apr 3, 2006
Messages
29
Programming Experience
Beginner
VB.NET:
override protected void OnInit(EventArgs e)
{
    //
  // CODEGEN: This call is required by the ASP.NET Web Form Designer.
  //
	InitializeComponent();
	base.OnInit(e);
}

In the above function, what is the usage of base.OnInit(e)? I have tried comment this.
VB.NET:
override protected void OnInit(EventArgs e)
{
    //
  // CODEGEN: This call is required by the ASP.NET Web Form Designer.
  //
	InitializeComponent();
	//base.OnInit(e);
}


It works normally. Moreover, When running the page, what thing triggers OnInit(EventArgs e) method?
 
Back
Top