• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

Asp.Net Interview Questions Answers

Question - 41 : - What does the "EnableViewState" property do?  Why would I want it on or off?

Answer - 41 : - It allows the page to save the users input on a form across postbacks.  It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser.  When the page is posted back to the server the server control is recreated with the state stored in viewstate.

Question - 42 : - . What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?

Answer - 42 : -   CodeBehind is relevant to Visual Studio.NET only.

Question - 43 : - Can you explain what inheritance is and an example of when you might use it?

Answer - 43 : -   When you want to inherit (use the functionality of) another class. Example: With a base class named Employee, a Manager class could be derived from the Employee base class.

Question - 44 : - What data types do the RangeValidator control support?

Answer - 44 : - Integer, String, and Date.

Question - 45 : -   What are the different types of assemblies available and their purpose?

Answer - 45 : - Private, Public/shared and Satellite Assemblies

Question - 46 : - What is the difference between in-proc and out-of-proc?

Answer - 46 : -   An inproc is one which runs in the same process area as that of the client giving tha advantage of speed but the disadvantage of stability becoz if it crashes it takes the client application also with it.Outproc is one which works outside the clients memory thus giving stability to the client, but we have to compromise a bit on speed.

Question - 47 : - What data types do the RangeValidator control support?

Answer - 47 : - Integer, String, and Date. 

Question - 48 : - What are user controls and custom controls?

Answer - 48 : -   Custom controls:  A control authored by a user or a third-party software vendor that does not belong to   the .NET Framework class library. This is a generic term that includes user controls. A  custom server control is used in Web Forms (ASP.NET pages). A custom client control is used  in Windows Forms applications. User Controls: In ASP.NET: A user-authored server control that enables an ASP.NET page to be re-used   as a server control. An ASP.NET user control is authored declaratively  and persisted as a  text file with an .ascx extension. The ASP.NET page framework compiles a user control on  the fly to a class that derives from the        System.Web.UI.UserControl class.

Question - 49 : -   Explain the differences between Server-side and Client-side code?

Answer - 49 : - Server-side code executes on the server.  Client-side code executes in the client's browser.

Question - 50 : -   Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

Answer - 50 : -   Valid answers are: ·  A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. ·  A DataSet is designed to work without any continuing connection to the original data source. ·  Data in a DataSet is bulk-loaded, rather than being loaded on demand. ·  There's no concept of cursor types in a DataSet. ·  DataSets have no current record pointer You can use For Each loops to move through the data. ·  You can store many edits in a DataSet, and write them to the original data source in a single operation. ·  Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources. 

Computer Contributors

Rajeev Katiyar
Yes Baroda

Share your email for latest updates


Our partners