Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Paging in DataList

Paging in DataList

Scheduled Pinned Locked Moved ASP.NET
helpjsonquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    popin
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • P 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

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      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.

      P 1 Reply Last reply
      0
      • M Mike Ellison

        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.

        P Offline
        P Offline
        popin
        wrote on last edited by
        #3

        Thanks Mike for the reply... but I've already made it out and it actually took some good coding on my part. But...thanks for your help...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups