Paging for a .NET Repeater, DataList

by kkikta 9. May 2008 17:19

Anyone who knows anything about asp.net knows that the builtin paging functionality is pretty weak. In particular for datalist and repeaters its non-existant. So when I was asked to take a look at some paging functionality a co-worker designed the other day I thought might as well. I having designed one for coldfusion quite a long time ago have a pretty good understanding on how most people think it should work. Anyway right away I had problems with what the guy had designed it was good for small sets but would have been a nightmare to use on something over 20 pages. So I explained to him my thoughts on what it should do and showed the stuff I built, he agreed that what I showed him would be easier to use. So as he set off on modifying his coded I figured might as well take a look and see if anyone has anything prebuilt. The first couple things I found were unimpressive but then I stumbled upon this one from CodeProject was exactly what I was looking for (almost). I downloaded it implemented it looked at it sent an email to the author just to make sure there wasn't some crazy license on it and proceeded to thank him. That was not the end though the page I was playing with has some ajax modals on it which was causing the control to lose its state since only a few variables used viewstate in this control so I generated a small patch to fix this problem.

CutePager.patch (5.19 kb)

Tags:

.NET | General

Add comment



  Country flag
biuquote
  • Comment
  • Preview
Loading


Month List

Page List