用户控件与页面执行顺序

protected void WebUserControl1_Init(object sender, EventArgs e)

{

} 

protected void WebForm1_Init(object sender, EventArgs e)

{

}

protected void Page_Load(object sender, EventArgs e)

{

}

protected void WebUserControl1_Load(object sender, EventArgs e)

{

}

protected void WebForm1_PreRender(object sender, EventArgs e)

{

}

protected void WebUserControl1_PreRender(object sender, EventArgs e)

{

}

protected void WebUserControl1_Unload(object sender, EventArgs e)

{

}

protected void WebForm1_Unload(object sender, EventArgs e)

{

}

你可能感兴趣的:(ASP.NET,webform,object)