WEB页面自打开,在你按下按钮之前,会有如下响应依次发生:

WEB页面自打开的响应顺序 private int i = 1;
WEB页面自打开的响应顺序    
protected override void OnPreInit(EventArgs e)
    }

当然,在你按下按钮之后自然是按钮响应,然后还会有一个响应发生:

按钮响应结束后,还会有一个响应发生:

WEB页面自打开的响应顺序protected override void OnLoadComplete(EventArgs e)
    }

 这样,当你页面全部打开后,页面的左上角会依次显示“1,2,3,4,5”,也即是这五个响应。

刚才查了一下,其实全部的响应如下:

 1WEB页面自打开的响应顺序FrameworkInitialize
 2WEB页面自打开的响应顺序InitializeCulture
 3WEB页面自打开的响应顺序OnPreInit
 4WEB页面自打开的响应顺序OnInit
 5WEB页面自打开的响应顺序TrackViewState
 6WEB页面自打开的响应顺序OnInitComplete
 7WEB页面自打开的响应顺序OnPreLoad
 8WEB页面自打开的响应顺序OnLoad
 9WEB页面自打开的响应顺序Page_Load
10WEB页面自打开的响应顺序OnLoadComplete
11WEB页面自打开的响应顺序EnsureChildControls
12WEB页面自打开的响应顺序CreateChildControls
13WEB页面自打开的响应顺序OnPreRender
14WEB页面自打开的响应顺序OnPreRenderComplete
15WEB页面自打开的响应顺序OnSaveStateComplete
16WEB页面自打开的响应顺序RenderControl
17WEB页面自打开的响应顺序Render
18WEB页面自打开的响应顺序RenderChildren 

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2021-10-27
  • 2021-07-26
  • 2021-12-02
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2021-10-05
  • 2022-01-06
  • 2021-10-03
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
相关资源
相似解决方案