ASP.Net Interview Question and Answers

76. What is the difference between an ADO.NET Dataset and an ADO Recordset?
 
  • 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.
  • DataSets have no current record pointer You can use For Each loops to move through the data.
  • Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.
  • Data in a DataSet is bulk-loaded, rather than being loaded on demand.
  • You can store many edits in a DataSet, and write them to the original data source in a single operation.
 
Your Name Your Email-ID
Your Answer
77. What are the validation controls?
  A set of server controls included with ASP.NET that test user input in HTML and Web server controls for programmer-defined requirements. Validation controls perform input checking in server code. If the user is working with a browser that supports DHTML, the validation controls can also perform validation using client script.
 
Your Name Your Email-ID
Your Answer
78. What is the difference between “Web.config” and “Machine.Config”?
 
  • “Web.config” files apply settings to each web application.
  • While “Machine.config” file apply settings to all ASP.NET applications.
 
Your Name Your Email-ID
Your Answer
79. What is event bubbling?
  Server controls like Data grid, Data List, and Repeater can have other child controls inside them. Example Data Grid can have combo box inside data grid. These child control do not raise there events by themselves, rather they pass the event to the container parent (which can be a data grid, data list, repeater), which passed to the page as “ItemCommand” event. As the child control send events to parent it is termed as event bubbling.
 
Your Name Your Email-ID
Your Answer
80. What is the use of @ Register directives?
  @Register directive informs the compiler of any custom server control added to the page.
 
Your Name Your Email-ID
Your Answer