Technical interview questions and answers play a major role in Dot Net Interviews because companies want candidates who understand the .NET Framework, CLR, C#, ASP.NET, ADO.NET, and application lifecycle management. Dot Net skills are widely used in enterprise application development, making this topic important in interviews for both freshers and experienced candidates. Companies like TCS, Infosys, Wipro, Cognizant, and Capgemini frequently ask questions on .NET fundamentals, coding techniques, and real-time scenarios to assess your problem-solving and programming capabilities. This guide provides the most important Dot Net interview questions with answers to help you prepare effectively. With clear explanations and examples, these questions will help you build confidence and perform well in technical rounds and project-based discussions during placement interviews.
Showing 10 of 33 questions
1. whats the difference between Response.Write() andResponse.Output.Write()?
1. The latter one allows you to write formattedoutput.
2. What methods are fired during the page load?
Init() - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading.
3. Where does the Web page belong in the .NET Framework class hierarchy?
System.Web.UI.Page
4. Where do you store the information about the users locale?
System.Web.UI.Page.Culture
5. whats 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.
6. What data type does the RangeValidator control support?
Integer,String and Date.
7. Explain the differences between Server-side and Client-side code?
Server-side code runs on the server. Client-side code runs in the clients browser.
8. What type of code (server or client) is found in a Code-Behind class?
Server-side code.
9. What does the "EnableViewState" property do? Why would I want it on or off?
It enables the viewstate on the page. It allows the page to save the users input on a form.
10. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?
Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.