ASP. NET page handling process

Source: Internet
Author: User

1. Page Initialization
After a page is requested, the first stage is to initialize the Page Object of the page. During the initialization process, the server generates a page_init event. developers can use this event to control the page, orProgramTo initialize the variable.
2. Load view status
After the initialization event, the page frame loads the view status for the page. Through the loadviewstate event, all the controls on the page will get their viewstate attributes.
3. Return Data Processing

4. Page Loading
After data processing is sent back, all page controls reflect the last updated status. Then the load event is executed on the page.
5. Handling of return events
Triggered by client events and processed on the serverCode.
6. Page pre-return stage
In this phase, you can use the onprerender method to reload 7. Save viewstate
After the page control is modified, the viewstate object is saved.
8. Page return stage
This phase triggers the reder event and generates HTML code. Then, the page can be accessed by the user's browser in the form of HTML.
9. Destroy objects
The last stage of the page lifecycle is to destroy the object, which is triggered hours ago.

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.