Paging Through Data with the FormView Control

You can allow users to navigate through a set of data items by allowing paging. You can allow the FormView control to automatically render the paging interface, or you can use a PagerTemplate to customize the paging interface.

The page in Listing 12.20 automatically renders an additional row that contains buttons for navigating between data items.

Listing 12.20. ShowFormViewPaging.aspx

images

images

images

The FormView ...

Get ASP.NET 4 Unleashed 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.