Tuesday, May 22, 2007

Asp.Net Interview Questions

Q: Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process.

Ans: 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 tothe actual worker process aspnet_wp.exe.

Q: What’s the difference between Response.Write() and Response.Output.Write()?

Ans: Response.Output.Write()allows you to write formatted output.Q: What methods are fired during the page load?Ans: Init() - when the page is instantiatedLoad() - when the page is loaded into server memoryPreRender() - the brief moment before the page is displayed to the user as HTMLUnload() - when page finishes loading.

Q: When during the page processing cycle is ViewState available?

Ans: After the Init() and before the Page_Load(), or OnLoad() for a control.

Q: What’s a bubbled event?

Ans: 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.

No comments: