Paging in DataList
-
I'm creating a shopping cart and I'm using a DataList for displaying the products. Now I'm facing a problem during paging. I want each of my product pages (I'm having n number of pages) displays 9 items in a DataList in 3 columns and 3 rows and each of the product pages should have hyperlinks to the other pages. Now each of the product pages should display the previous and the next button and 9 hyperlinked pages in between them e.g << 1 2 3 4 5 6 7 8 9 >> ...in this way. Now if I click on 1,I'll be taken to the 1st page but over there I'll get the hyperlinks to the rest of the pages but not 1 and 1 will not be visible e.g. <<2 3 4 5 6 7 8 9 10 >> ...in this way. Again if I move to 2, it will show me the 2nd page but 1st and 2nd pages hyperlinks would not be there e.g. <<3 4 5 6 7 8 9 10 11>> ... in this way... Can anyone help? I need the code urgently... It would be of great help. Thanks. Popin
-
I'm creating a shopping cart and I'm using a DataList for displaying the products. Now I'm facing a problem during paging. I want each of my product pages (I'm having n number of pages) displays 9 items in a DataList in 3 columns and 3 rows and each of the product pages should have hyperlinks to the other pages. Now each of the product pages should display the previous and the next button and 9 hyperlinked pages in between them e.g << 1 2 3 4 5 6 7 8 9 >> ...in this way. Now if I click on 1,I'll be taken to the 1st page but over there I'll get the hyperlinks to the rest of the pages but not 1 and 1 will not be visible e.g. <<2 3 4 5 6 7 8 9 10 >> ...in this way. Again if I move to 2, it will show me the 2nd page but 1st and 2nd pages hyperlinks would not be there e.g. <<3 4 5 6 7 8 9 10 11>> ... in this way... Can anyone help? I need the code urgently... It would be of great help. Thanks. Popin
Here's an article on CP[^] where the author added paging to a DataList control. Try some searches for "paging And DataList" and see what comes up.
-
Here's an article on CP[^] where the author added paging to a DataList control. Try some searches for "paging And DataList" and see what comes up.