Page_preInit (常用)
Page_Init (常用) 主要完成页面初始化时运行(只运行一次)
Page_InitComplete
Page_PreLoad
page_Load (常用) 页面读放内存时运行,每次都会初触发
page_LoadComplete
Button_Click
page_PreRender(常用)
Page_PreRenderComplete
Page_SaveStateComplete
protected void Page_PreInit(object sender, EventArgs e)
{
Response.Write("我执行了Page_PreInit<br/>");
}
protected void Page_Init(object sender, EventArgs e)
{
Response.Write("我执行了Page_Init<br/>");
}
protected void Page_InitComplete(object sender, EventArgs e)
{
Response.Write("我执行了Page_InitComplete<br/>");
}
protected void Page_PreLoad(object sender, EventArgs e)
{
Response.Write("我执行了Page_PreLoad<br/>");
}
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("我执行了Page_Load<br/>");
}
protected void Page_LoadComplete(object sender, EventArgs e)
{
Response.Write("我执行了Page_LoadComplete<br/>");
}
protected void Page_PreRender(object sender, EventArgs e)
{
Response.Write("我执行了Page_PreRender<br/>");
}
protected void Page_Render(object sender, EventArgs e)
{
Response.Write("我执行了Page_Render<br/>");
}
protected void Page_PreRenderComplete(object sender, EventArgs e)
{
Response.Write("我执行了Page_PreRenderComplete<br/>");
}
protected void Page_SaveStateComplete(object sender, EventArgs e)
{
Response.Write("我执行了Page_SaveStateComplete<br/>");
}
protected void Page_Unload(object sender, EventArgs e)
{
//Response.Redirect("Default3.aspx");
//Response.Write("我执行了Page_UnLoad<br/>");
}