PDA

View Full Version : loop in asp



NinjaTurtle
07-01-2002, 06:19 AM
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?

glenngv
07-01-2002, 11:31 AM
if you would be clearer on what you *actually* want to accomplish, then maybe other members out there would be able to help you.

ecnarongi
07-01-2002, 05:54 PM
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

NinjaTurtle
07-04-2002, 04:28 AM
but how i stop the looping??? can u do a small sample?