.NET Interview Questions and answer

Here are the few Important questions for dotnet inteview.Can anybody answer this questions?

1 - Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.

2 - What’s the difference between Response.Write() andResponse.Output.Write()?

3 - What methods are fired during the page load?

4 - What’s a bubbled event?

5 - How ASP .NET different from ASP?

6 - What is smart navigation?

7 - How do you validate the controls in an ASP .NET page?

8 - How to manage pagination in a page?

9 - What is the difference between login controls and Forms authentication?

Answers

1. 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.

2. Response.Output.Write() allows you to write formatted output.

3. - init() - when the page is instantiated
- Load() - when the page is loaded into server memory
- PreRender() - the brief moment before the page is displayed to the user as HTML
- Unload() - when page finishes loading

4. 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.

5. - Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server

6. The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.

7.- Using special validation controls that are meant for this. We have Range Validator, Email Validator.

8.Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.

9.Login controls are an easy way to implement Forms authentication without having to write any code.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*