|
-
May 25th, 2001, 10:23 AM
#1
Thread Starter
Hyperactive Member
ASP Questions
I am using ado to get a recordset containing 10 records.
I want to display 5 in a table , and have a NEXT button , on clicking this it should display the next 5 records in the table.(overwritting the initial 5)
1st question -> I'm using interdev , I have a SEARCH button , on clicking it, it displays the table with the records.I placed a NEXT button on the bottom of the page.But when I click SEARCH it keeps putting the table
after the NEXT Button, even though I have a large space after the SEARCH button and before the NEXT button.
Any ideas on how to get the NEXT button after the table??
2nd question -> I know how to fill a table from a record set , but how do I divide a recordset into 2 sections , and show each section separate(i.e 1-5 , 6-10)
Any ideas??
Thanks
-
May 25th, 2001, 04:57 PM
#2
Frenzied Member
your 1rst question ----->????????????????6
your 2nd:
-your have to put all your recordset in an session array,
use : yourTempArray = yourRecorsetName.getRows
and then
session("yourSessionArray")=yourTempArray
-you need to set 2 session variable:
fromVariable and toVariable
so if you press next or previous, just increase or decrease
your fromVariable and toVariable of 5 and do:
for x = fromVariable to toVariable
build your array with session("yourSessionArray")(x,0)
next
i don`t know if i explain it well, but that is how i did it!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|