User Interface Paging

Imagine that you want to use a GridView control to display the results of a database query in multiple pages. The easiest way to do this is to take advantage of user interface paging.

For example, the page in Listing 18.18 uses a GridView and ObjectDataSource control to display the records from the Movies database table in multiple pages (see Figure 18.4).

Figure 18.4. Displaying multiple pages with user interface paging.

image

Listing 18.18. ShowUIPaging.aspx

images

The GridView control in Listing 18.18 includes an AllowPaging property ...

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.