Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things. When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe.
inetinfo.exe = IIS
aspnet_isapi.dll = ISAPI filter
aspnet_wp.exe = actual worker process
Page Load
Init, Load, PreRender, Unload, Disposed = ILPUD
ViewState is available after Init, OnLoad for a control.
Page Life Cycle Events2
- Page_Init
The server controls are loaded and initialized from the Web form’s view state. This is the first step in a Web form’s life cycle.
- Page_Load
The server controls are loaded in the page object. View state information is available at this point, so this is where you put code to change control settings or display text on the page.
- Page_PreRender
The application is about to render the page object.
- Page_Unload
The page is unloaded from memory.
- Page_Disposed
The page object is released from memory. This is the last event in the life of a page object.
- Page_Error
An unhandled exception occurs.
- Page_AbortTransaction
A transaction is aborted.
- Page_CommitTransaction
A transaction is accepted.
- Page_DataBinding
A server control on the page binds to a data source.
- Process Request Method finally renders HTML Page
What’s a bubbled event?
When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.
When controls send their events to their parent control to be handled.
What are the different types of Session state management options available with ASP.NET?
ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a “sticky-server” (or no load-balancing) so that the user is always reconnected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable.
In-Process stores the session in memory on the web server.
Out-of-Process Session state management stores data in an external data source, requires that all objects stored in session are serializable.
Source: Mark Wagner’s .NET C# Cogitation1
VbDotNetHeaven2