Forums

ASP

This topic is locked

paging problem: losing form variables

Posted 02 Feb 2002 09:24:51
1
has voted
02 Feb 2002 09:24:51 Travis Brown posted:
I'm passing a search parameter from a text field to a results page with a repeat region of 25 instances. When I page to the next 25 results, I must be loosing the form variable because I get no results (because the default value in the rs is something obscure and unattainable in regular use). I've always done it with querystrings before, but can't in this instance, so I need to use form variables. How do I pass the form variable for the duration of the paging?

Replies

Replied 13 Feb 2002 21:25:45
13 Feb 2002 21:25:45 Joel Martinez replied:
you need to make sure that the link that posts back to the results page is passing back the original search criteria. something like this:

&lt;a href="result.asp?offset=10&<b>searchCriteria</b>=&lt;%=<b>request("searchCriteria"</b>%&gt;"&gt;

notice how the value of the post will be passed on the page when you click the link

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/

Reply to this topic