Set - 3

Question 6 :

Explain DataSet.AcceptChanges and DataAdapter.Update methods.

Answer :

DataAdapter.Update method Calls the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the DataSet.
DataSet.AcceptChanges method Commits all the changes made to this row since the last time AcceptChanges was called.

Question 7 :

When we go for html server controls and when we go for web server controls?

Answer :

Server controls are a part of When a server control is used there will be an extra overhead on the server to create the control at runtime and accordingly set the values. HTML controls are static controls and are easy to use. They are supported is
As a rule, if there is a corresponding HTML control available instead of the server control, you should always go for the HTML control as it enhances the server performance and ensures faster response. Server controls should be used when it is found that the available HTML controls are not sufficient to achieve the task.

Question 8 :

How many languages .NET is supporting now?

Answer :

When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. 44 languages are supported.

Question 9 :

How is .NET able to support multiple languages?

Answer :

A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.

Question 10 :

How ASP .NET different from ASP?

Answer :

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