.NET Interview Questions
.Net Interview Questions
Raised after the start stage is complete and before the initialization stage begins.
Use this event for the following:
Check the IsPostBack property to determine whether this is the first time
the page is being processed. The IsCallback and IsCrossPagePostBack
properties have also been set at this time.
Create or re-create dynamic controls.
Set a master page dynamically.
Set the Theme property dynamically.
Read or set profile property values.
Raised after all controls have been initialized and any skin settings have been
applied. The Init event of individual controls occurs before the Init event of the
Use this event to read or initialize control properties.
Raised at the end of the page's initialization stage. Only one operation takes
place between the Init and InitComplete events: tracking of view state changes is
turned on. View state tracking enables controls to persist any values that are
programmatically added to the ViewState collection. Until view state tracking is
turned on, any values added to view state are lost across postbacks. Controls
typically turn on view state tracking immediately after they raise their Init event.
Use this event to make changes to view state that you want to make sure are
persisted after the next postback.
Raised after the page loads view state for itself and all controls, and after it
processes postback data that is included with the Request instance.
The Page object calls the OnLoad method on the Page object, and then
recursively does the same for each child control until the page and all controls
are loaded. The Load event of individual controls occurs after the Load event of
Use the OnLoad event method to set properties in controls and to establish
Use these events to handle specific control events, such as a Button control's
Click event or a TextBox control's TextChanged event.
Raised at the end of the event-handling stage.
Use this event for tasks that require that all other controls on the page be
Raised after the Page object has created all controls that are required in order to
render the page, including child controls of composite controls. (To do this, the
Page object calls EnsureChildControls for each control and for the page.)
The Page object raises the PreRender event on the Page object, and then
recursively does the same for each child control. The PreRender event of
individual controls occurs after the PreRender event of the page.
P a g e | 3
Prepared by Abhishek Goenka
Email – email@example.com