• +91 9723535972
  • info@interviewmaterial.com

Asp.Net Interview Questions and Answers

Asp.Net Interview Questions and Answers

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

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

Question - 12 : - What’s a bubbled event?

Answer - 12 : -   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 event handlers, allowing the main DataGrid event handler to take care of its constituents. 

Question - 13 : - What type of code (server or client) is found in a Code-Behind class?

Answer - 13 : - The answer is server-side code since code-behind is executed on the server.  However, during the code-behind's execution on the server, it can render client-side code such as JavaScript to be processed in the clients browser.  But just to be clear, code-behind executes on the server, thus making it server-side code.

Question - 14 : - Should user input data validation occur server-side or client-side?  Why?

Answer - 14 : - All user input data validation should occur on the server at a minimum.  Additionally, client-side validation can be performed where deemed appropriate and feasable to provide a richer, more responsive experience for the user. 

Question - 15 : -   Can you edit data in the Repeater control?

Answer - 15 : -     No, it just reads the information from its data source.  

Question - 16 : -   Which method do you invoke on the DataAdapter control to load your generated dataset with data?

Answer - 16 : - The Fill() method. 

Question - 17 : - Whats MSIL, and why should my developers need an appreciation of it if at all?

Answer - 17 : - MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.  MSIL also allows the .NET Framework to JIT compile the assembly on the installed computer. 

Question - 18 : -   Explain what a diffgram is, and a good use for one?

Answer - 18 : - The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML.  A good use is reading database data to an XML file to be sent to a Web Service. 

Question - 19 : -   Describe the difference between inline and code behind.

Answer - 19 : - : Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page

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

Answer - 20 : -   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.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners