HighDots Forums  

recordset next previous

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss recordset next previous in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tonysoprano
 
Posts: n/a

Default recordset next previous - 11-16-2004 , 08:59 AM






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 ?


Reply With Quote
  #2  
Old   
CMBergin
 
Posts: n/a

Default Re: recordset next previous - 11-16-2004 , 09:20 AM






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 ?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.