What is the difference between Array and Arraylist?
Ans:
As elements are added to an ArrayList, the capacity is automatically increased as required through reallocation. The capacity can be decreased by calling TrimToSize or by setting the Capacity property explicitly.
22
How to manage pagination in a page?
Ans:
Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.
23
What is ADO .NET and what is difference between ADO and ADO.NET?
Ans:
ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in- memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.
24
What is the difference between ref & out parameters?
Ans:
An argument passed to a ref parameter must first be initialized. Compare this to an out parameter, whose argument does not have to be explicitly initialized before being passed to an out parameter.