Creating a Custom User Interface for Paging

If you need total and complete control over the paging user interface, you can use the TemplatePagerField to customize the appearance of the DataPager. The page in Listing 14.9 illustrates how you can use the TemplatePagerField.

Listing 14.9. DataPagerTemplate.aspx

images

images

images

The TemplatePagerField in Listing 14.9 contains two LinkButton controls (see Figure 14.9). The first LinkButton has a CommandName set to ...

Get ASP.NET 4 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.