aspx life cycle

Source: Internet
Author: User

Go to the interview today, meet the interviewer to ask this question. What is the ASPX page life cycle? And suddenly he was mad

Also explained to me: is the page how to parse the ASPX page. Decisive did not read this knowledge, did not answer up. Now, record it.

Asp. NET page life cycle

Asp. NET page runs, this page goes through a life cycle. A series of processing steps will be performed during the life cycle. These steps include initializing, instantiating the control, restoring and maintaining the state, running the event handler code, and rendering.

General page life cycle stage

page requests: page requests occur before the page life cycle begins. User Request page, ASP. NET determines whether the page needs to be parsed and compiled, or whether a cached version of the page can be sent without running the page accordingly.

start: in the Start phase, page properties, such as request and Response, are set. At this stage, the page also determines whether the request is a postback or a new request, and sets the IsPostBack property. Also, during the start phase, the UICulture property of the page is set.

Page initialization: During page initialization, the controls in the page can be used, and the UniqueID property of each control is set. In addition, any theme will be applied to the page. If the current request is a postback request, the postback data has not yet been loaded, and the control property value has not been restored to the value in view state.

Load: During load, if the current request is a postback request, the control property will be loaded with information recovered from view state and control state.

aspx life cycle

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.