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