Web Analytics Made Easy -
StatCounter loop in asp - CodingForum

Announcement

Collapse
No announcement yet.

loop in asp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • loop in asp

    dear,

    i have a loop to work out, example there are 120 looping times, and then i will print out the value of looping times like:

    1 time
    2 time
    3 time
    ..
    ..
    ..
    120 time


    but i want is separate to 20 times per page then i will show "next" to let user click to next page, like:

    1 time
    2 time
    3 time
    ..
    ..
    20 time

    NEXT >>
    <HR>

    when user click NEXT, the page will continue go
    21 time
    22 time
    23 time
    ..
    ..
    NEXT>>

    <HR>
    .
    .
    .

    all are not database related, and no hard code, possible to do that?
    Thanks.
    =====================================================
    From NinjaTurtle
    ++http://ohmygoh.blogspot.com|http://technology.ohmygoh.com++

  • #2
    if you would be clearer on what you *actually* want to accomplish, then maybe other members out there would be able to help you.
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      why don't you just have a counter and if your counter mod 20 = 0 then link to the next page. And you can have your pages seperated by how many times your number is divided by 20, ie. counter = 100 div 20 = 5 pages
      I would rather be a lion for a day than a lamb that lives forever.

      Comment


      • #4
        but how i stop the looping??? can u do a small sample?
        Thanks.
        =====================================================
        From NinjaTurtle
        ++http://ohmygoh.blogspot.com|http://technology.ohmygoh.com++

        Comment

        Working...
        X