- What is page life cycle?
- What is the second stage of the page life cycle?
- Which of the following events is raised at the end of the page's initialization stage?
- Which event is raised if the authentication is not successful?
What is page life cycle?
When an ASP.NET page runs, the page goes through a life cycle in which it performs a series of processing steps. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering.
What is the second stage of the page life cycle?
2. Page Start. Page Start helps in creating two objects: request and response. The request holds all the information which the user sent, while the response contains all the information that is sent back to the user.
Which of the following events is raised at the end of the page's initialization stage?
InitComplete: This event takes at the end of the page's initialization stage. In this event tracking of view state changes is turned on, until view state tracking is turned on, any values added to view state are lost across postbacks.
Which event is raised if the authentication is not successful?
LoginError: Raised if authentication was not successful. Use this event to set text in the control that explains the problem or to direct the user to a different page.