This is the first of a series of articles am going to write about Asp.Net 2.0 pagination and how to build a custom digg like numeric pagination control which can be used with DataList, Repeater or any other data bound controls.
NOTE: I haven’t used the .Net 3.5 DataPager control yet, so am not sure if it already addressed the scenarios in the following discussion
The default pagination in Asp.net which comes with GridView is great in terms of developer productivity and ease of use. When use with data source controls it will work without even a single line of code and it is easy to customize by setting simple properties available.
But you may need to think about writing a your own pagination logic when
- You need pagination with Datalist or Repeater
- You need search engine friendly pagination
- You need user friendly pagination
- You need clean HTML for the pagination links
- You need a pagination strip which will work independent of data bound controls






