ASP.NET Interview questions

Total available count: 47
Subject - Microsoft Technologies
Subsubject - ASP.NET

Explain about page life cycle?

Page life cycle is the heart of to process the page in different levels. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering. Below are the various steps of the page life cycle,
1. PreInit
2. Init
3. InitComplete
4. Preload
5. Load
6. ControlEvents
7. LoadComplete
8. PreRender
9. PreRenderComplete
10. SaveStateComplete
11. Render
12. Unload
1. PreInit: Raised after the start stage is complete and before the initialization stage begins
2. Init: Raised after all controls have been initialized and any skin settings have been applied
3. InitComplete: Raised at the end of the page"s initialization stage. Use this event to make changes to view state that you want to make sure are persisted after the next postback
4. Preload: 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
5. Load: The Page object calls the OnLoad method on the Page object. This is called Page_OnLoad event which is the default event in code behind page
6. ControlEvents: Use these events to handle specific control events, such as a Button control"s Click event or a TextBox control"s TextChanged event
7. LoadComplete: Raised at the end of the event-handling stage. Use this event for tasks that require that all other controls on the page be loaded
8. PreRender: Raised after the Page object has created all controls that are required in order to render the page, including child controls of composite controls.
9. PreRenderComplete: Raised after each data bound control whose DataSourceID property is set calls its DataBind method.
10. SaveStateComplete: Raised after view state and control state have been saved for the page and for all controls.
11. Render: This is not an event; instead, at this stage of processing, the Page object calls this method on each control. All ASP.NET Web server controls have a Render method that writes out the control"s markup to send to the browser.
12. Unload: Raised for each control and then for the page.

Next 2 interview question(s)

Explain about ASP.NET life cycle?
Features of ASP.NET 4.0?