Working with Data in ASP.NET 2.0 - Efficiently Paging Through Large Amounts of Data
As we discussed in the preceding tutorial, paging can be implemented in one of two ways:
- Default Paging – can be implemented by simply checking the Enable Paging option in the data Web control’’s smart tag? however, whenever viewing a page of data, the ObjectDataSource retrieves all of the records, even though only a subset of them are displayed in the page
- Custom Paging – improves the performance of default paging by retrieving only those records from the database that need to be displayed for the particular page of data requested by the user? however, custom paging involves a bit more effort to implement than default paging
Read more
In-Depth look at the GridView Control
We all enjoyed the datalist and the datagrid controls in Asp.net 1.1. There were thousands of operations that we can perform using datagrid and datalist control. Asp.net 2.0 ships with another data bound templated control which is called Grid View. Grid View has made everything easier for developers. The main changes that I have seen in Asp.net 2.0 is that we don’t require a lot of code to achieve tasks but most of the functionality is already provided and built in the control. In this article we will see the GridView control in action and we will see what type of operations we can perform using this control and how this control is better than the classic datagrid control.
Read more
Working with Data in ASP.NET 2.0 - Using the FormViews Templates
In the last two tutorials we saw how to customize the GridView and DetailsView controls’ outputs using TemplateFields. TemplateFields allow for the contents for a specific field to be highly customized, but in the end both the GridView and DetailsView have a rather boxy, gridlike appearance. For many scenarios such a gridlike layout is ideal, but at times a more fluid, less rigid display is needed. When displaying a single record, such a fluid layout is possible using the FormView control.
Read more