Helpful Information
 
 
Category: ASP
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?

if you would be clearer on what you *actually* want to accomplish, then maybe other members out there would be able to help you.

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

but how i stop the looping??? can u do a small sample?










privacy (GDPR)