Paging in Datalist
-
Hi I currently have a paging mechanism for my datalist control which is displaying a gallery of Images. The code is a modified version of the code from HERE. I would like to modify the control to allow for paging through the images similar to the paging mechanism found on google. Only, there will be a fixed number of pages displayed and there will be a next and previous button as well. << Prev 1 2 3 4 5 Next>> So far what I've been able to achieve is: I am able to page through pages 1 to 5, in any order. All the buttons are linkbuttons. Here is what I need to still do: 1. Allow the next button to move through the currently displayed pages 2. When the user is on the last page and clicks the next button, the next page needs to be displayed and the linkbuttons need to change to show the next 5 page numbers too. Can anyone help me as to how I can go about starting this or if anyone else has done this or is busy with a similar thing, please, any and all help will be brilliant. Thanks