Chapter 19. Using Templated Data Web Controls

<feature><title></title>

In this hour, we will cover

  • Using the ListView and FormView controls to display data

  • Creating the ListView’s templates by hand and through the Configure ListView dialog box

  • Sorting data with the ListView

  • Paging through data with the DataPager control

  • Paging through the FormView’s records

</feature>

As we have seen through the past several hours, the GridView and DetailsView controls make displaying, inserting, editing, and deleting database data as easy as point and click. However, these two controls render a rather boxy and unimaginative interface. By default, the GridView and DetailsView use BoundFields to display the database columns returned by their data source controls, which ...

Get Sams Teach Yourself ASP.NET 3.5 in 24 Hours, Complete Starter Kit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.