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. next button

next button

Scheduled Pinned Locked Moved Web Development
question
3 Posts 3 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.
  • L Offline
    L Offline
    LovelyHelp
    wrote on last edited by
    #1

    I am using asp. I will like my code to generate next button if my pageitem is more than 5. it each each row it will only display 5 items. once the row ismore than 5 items, it iwll have next button which user can click onnext button. now my code is like this <% i=1 do until prodSet.EOF if not i mod 4 = 0 then %> <% else %> <% ii=1 do until prodSet1.EOF if not ii mod 4 = 0 then %> <%else%> <% end if ii=ii+1 prodSet1.MoveNext Loop %> <% end if i=i+1 prodSet.MoveNext Loop %>

    ">![](images/products/<%=prodSet()" border="0">

    ">![](images/products/<%=prodSet()" border="0">

    <%=prodSet1("prod1_name")%>

    <%=prodSet1("prod1_name")%>

    G M 2 Replies Last reply
    0
    • L LovelyHelp

      I am using asp. I will like my code to generate next button if my pageitem is more than 5. it each each row it will only display 5 items. once the row ismore than 5 items, it iwll have next button which user can click onnext button. now my code is like this <% i=1 do until prodSet.EOF if not i mod 4 = 0 then %> <% else %> <% ii=1 do until prodSet1.EOF if not ii mod 4 = 0 then %> <%else%> <% end if ii=ii+1 prodSet1.MoveNext Loop %> <% end if i=i+1 prodSet.MoveNext Loop %>

      ">![](images/products/<%=prodSet()" border="0">

      ">![](images/products/<%=prodSet()" border="0">

      <%=prodSet1("prod1_name")%>

      <%=prodSet1("prod1_name")%>

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Look for examples of paging. What you want is a limited form of paging, e.g. without buttons for first, last, previous and all the pages, only having the next button.

      --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • L LovelyHelp

        I am using asp. I will like my code to generate next button if my pageitem is more than 5. it each each row it will only display 5 items. once the row ismore than 5 items, it iwll have next button which user can click onnext button. now my code is like this <% i=1 do until prodSet.EOF if not i mod 4 = 0 then %> <% else %> <% ii=1 do until prodSet1.EOF if not ii mod 4 = 0 then %> <%else%> <% end if ii=ii+1 prodSet1.MoveNext Loop %> <% end if i=i+1 prodSet.MoveNext Loop %>

        ">![](images/products/<%=prodSet()" border="0">

        ">![](images/products/<%=prodSet()" border="0">

        <%=prodSet1("prod1_name")%>

        <%=prodSet1("prod1_name")%>

        M Offline
        M Offline
        manowj
        wrote on last edited by
        #3

        Hi, Check this link,It solves the problem, http://www.codeproject.com/asp/rspaging.asp regards, Manowj

        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