生命周期 Pag Life Cycle
2007-10-24 22:02
441 查看
注:刚从硬盘里发现的,忘了从哪里整理出来的。有知道的兄弟帮忙添加个引用。
本文向烈推荐给所以想要或正在进行Web开发的朋友们,只有了解了页面执行的过程,才能使你的设计开发更上一步,如鱼得水。同时也建议关注一下IIS管道及ASP.NET管道(HttpModule, HttpHandle等)。
Pag Life Cycle
l Occurs: only for page class. UserControls, MasterPages do not have the method to override.
Note:
1. PreInit() is the only event set Themes programmatically.
2. Controls initialized after Init().
Note:
1. After LoadPostData(), we can access the values changed by user.
l In this event, the controls which implement IpostBackDataHandle interface gets loaded by the values from Http Post Data.
Note:
1. Http PostData has only a value pre control.
Note:
1. Page_Load will fire first before any event handle.
Note:
1. Last event we can make any changes to control values.
l Cause the viewstate to catch up
~~~~~~~~~~J
本文向烈推荐给所以想要或正在进行Web开发的朋友们,只有了解了页面执行的过程,才能使你的设计开发更上一步,如鱼得水。同时也建议关注一下IIS管道及ASP.NET管道(HttpModule, HttpHandle等)。
Pag Life Cycle
PreInit
l All controls created and initialized with default value.l Occurs: only for page class. UserControls, MasterPages do not have the method to override.
Note:
1. PreInit() is the only event set Themes programmatically.
2. Controls initialized after Init().
OnInit
l Can read properties set at design time.Note:
1. After LoadPostData(), we can access the values changed by user.
LoadViewState
l Fired if the page has posted back (IsPostBack == true)LoadPostBackData
l Fired if the page has posted back.l In this event, the controls which implement IpostBackDataHandle interface gets loaded by the values from Http Post Data.
Note:
1. Http PostData has only a value pre control.
Page_Load
U know mostControl Event Handles
l Like button click eventNote:
1. Page_Load will fire first before any event handle.
PreRender
l Recursively fire for each child controls in this page.Note:
1. Last event we can make any changes to control values.
SaveViewState
l ViewState of the controls got saved in the form’s hidden control.Render
l All control are rendered recursively.Unload
l Perform clear up operations.Additional
1. ProcessPostDatal Cause the viewstate to catch up
~~~~~~~~~~J
相关文章推荐
- Bug Life Cycle & Guidelines (缺陷生命周期指导手册)
- iOS Application Life Cycle 应用程序生命周期
- Android 进程生命周期 Process Lifecycle
- 『0005』- 以太坊智能合约生命周期(Ethereum smart contracts lifecycle)
- unity3d中脚本生命周期(MonoBehaviour lifecycle)
- 软件发布的生命周期(software release life cycle)
- DOJO组件生命周期(the life cycle of dojo widget)
- 软件发布生命周期 Software release life cycle
- 视图控制器生命周期(ViewController Lifecycle)
- DOJO组件生命周期(the life cycle of dojo widget)
- 以太坊智能合约生命周期(Ethereum smart contracts lifecycle)
- DOJO组件生命周期(the life cycle of dojo widget)
- app整个应用生命周期管理ActivityLifecycleCallbacks,registerActivityLifecycleCallbacks
- unity3d中脚本生命周期(MonoBehaviour lifecycle)
- win8: Manage app lifecycle and state 管理生命周期和状态
- Activity LifeCycle 生命周期
- android基础知识---ActivityLifecycleCallbacks监听Activity们的生命周期
- React component lifecycle生命周期管理
- 应用程序生命周期管理ALM(application lifecycle management)
- Android 使用ActivityLifecycleCallbacks监听自己应用Activity的生命周期