Key events in ASP. NET page Lifecycle

Source: Internet
Author: User

Override of stage page events
1. Page Initialization
Init
 
 
2. Load view status
 
LoadViewState
 
3. process the returned data
 
The LoadPostData method in any control that implements the IPostBackDataHandler Interface
 
4. Load the page
Load
 
 
5. Send a change notification
 
The RaisePostDataChangedEvent method in any control that implements the IPostBackDataHandler Interface
 
6. Handle sending back events
Any sending event defined by the Control
Implements the RaisePostBackEvent Method for any control of the IPostBackEventHandler interface.
 
7. Before page rendering
PreRender
 
 
8. Save view status
 
SaveViewState
 
9. display the page
 
Render
 
10. Uninstall page
Unload
 
At the Page level, some stages listed above are invisible and only affect server control writers and developers who coincidentally want to create classes derived from pages. The activity signals sent from the page to the outside world only include Init, Load, PreRender, Unload, and all the sending events defined by the embedded control.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.