There's a "go to specific record" navigation behavior. Use that to open the
page to the initial record you're looking for, then use back and next.
To be honest, I think you'd get better performance by simulating the
"back/next" behavior on your own. Always filter the recordset based on the
passed ID. For your back and next buttons, just make them links to the same
page, but with id=id-1 and id=id+1, respectively.
That is:
<a
href="thisPage.asp?ID=<%=CInt(Request.QueryString( "ID"))-1%>">Previous</a>
Then, when you pull your recordset, always use ID as a filter. If the
recordset is empty, redirect the user to the first record (ID=1), and your
navigation will act as a loop going forward, and simply not allow the user
to go back before record one.
It's just a thought.
"tonysoprano" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
i want to have a gallery that has back and next recordset paging however i
want
the initial image to be the one based on an id passed from a previous page
(
thumbnail ) if i filter the recordset by this id then the recordset only
contains one record what i want to to is set the cursor to the matching
record
to allow back and next is this possible ? |