Attached code all works. Change required as follows:
Pages should be in blocked of ten the same way Google pages, eg
1,2,3,4,5,6,7,8,9,10 Next --> 11,12,13, etc
The code should be changed AS LITTLE AS POSSIBLE. I do not want a re-write. This is important. The entire logic and structure should remain the same for this task with some small changes. This will run on the Web.
I had already implemented Paging using datalist already on one web applications. IF you want to see link of that application please contact me. Also I fulfill your requirement of Paging as you wish.