Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: loop in asp

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    358
    Thanks
    2
    Thanked 0 Times in 0 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
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,960
    Thanks
    0
    Thanked 236 Times in 233 Posts
    if you would be clearer on what you *actually* want to accomplish, then maybe other members out there would be able to help you.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Northern NJ
    Posts
    404
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    358
    Thanks
    2
    Thanked 0 Times in 0 Posts
    but how i stop the looping??? can u do a small sample?
    Thanks.
    =====================================================
    From NinjaTurtle
    ++http://ohmygoh.blogspot.com|http://technology.ohmygoh.com++


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •