Choose and reorder in the correct sequence the stages of the page life cycle.
Explanation:
The page life cycle describes the stages that occur when a page is requested and when
it is destroyed. Following are the stages of the page life cycle:
1.Page request: This stage occurs before the page life cycle begins. When the page is requested by a
user, ASP.NET determines whether the page needs to be parsed and compiled or whether a cached
version of the page can be sent in response without running the page.
2.Start: In this stage, the page properties such as Request and Response are set, and it determines
whether the request is a postback or a new request and sets the IsPostBack property.
3.Initialization: In this stage, the controls on the page are available and each control’s UniqueID
property is set.
4.Load: In this stage, if the current request is a postback, control properties are loaded with
information recovered from view state and control state.
5.Postback event handling: In this stage, if the request is a postback, control event handlers are
called. After that, the Validate method of all validator controls is called, which sets the IsValid
property of individual validator controls and of the page.6.Rendering: Before this stage the view state is saved for the page and all controls. The page calls the
Render method for each control, providing a text writer that writes its output to the OutputStream
object of the page’s Response property.
7.Unload: In this stage, the Unload event is raised after the page has been fully rendered, sent to the
client, and is ready to be discarded. The page properties such as Response and Request are unloaded
and cleanup is performed.