UserControl1.ascx和UserControl2.ascx为先后在Test.aspx中创建的用户控件:
| 执行步骤 |
Test.aspx |
UserControl1.ascx |
UserControl2.ascx |
| 1 |
|
OnInit |
|
| 2 |
|
Init |
|
| 3 |
|
|
OnInit |
| 4 |
|
|
Init |
| 5 |
OnInit |
|
|
| 6 |
Init |
|
|
| 7 |
Load |
|
|
| 8 |
|
Load |
|
| 9 |
|
|
Load |
| 10 |
(Buttom_Click...) |
(Buttom_Click...) |
(Buttom_Click...) |
| 11 |
PreRender |
|
|
| 12 |
|
PreRender |
|
| 13 |
|
|
PreRender |
| 14 |
|
Unload |
|
| 15 |
|
|
Unload |
| 16 |
Unload |
|
|
- 当Init激发时,控件都已经可用,但控件未通过ViewState对象初始化。
- 在所有控件都通过ViewState对象初始化之后,激发Load

相关文章:
-
2021-12-31
-
2021-07-24
-
2022-03-08
-
2022-01-24
-
2022-12-23
-
2022-12-23
-
2021-12-24
猜你喜欢
-
2021-10-03
-
2022-03-06
-
2021-10-18
-
2021-08-24
-
2021-11-20
-
2022-12-23
相关资源
-
下载
2023-02-03
-
下载
2022-12-28
-
下载
2021-06-05
-
下载
2023-02-19