Link to home
Start Free TrialLog in
Avatar of MilburnDrysdale
MilburnDrysdale

asked on

Have menu/list selection remain "persistent"

Using ASP vbscript...I have a page that returns results from a database where the results are filtered via a drop down list within a form. I would like that selection to remain after the user submits. Is there a way to do this?
Avatar of peterxlane
peterxlane

Is your dropdown list created from a database or is it hardcoded?
Hi MilburnDrysdale ,

Not too sure what you mean by "selection to remain after the user submits". Presumably when they submit the form it will post the details to another page. Could you explain a bit further?

Thanks,

Reiss :o)
Avatar of MilburnDrysdale

ASKER

peterxlane - the list is static...

reiss20 - the dropdown list merely filters records for the existing page, so it reloads the same page (not a jump menu).
ASKER CERTIFIED SOLUTION
Avatar of peterxlane
peterxlane

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and here is another approach:

<%
strFilterVal = Request.Form("myfilter")
%>

<form method="post">
<select name="myfilter">
      <option value="one"<%If strFilterVal = "one" Then Response.Write " selected"%>>one</option>
      <option value="two"<%If strFilterVal = "two" Then Response.Write " selected"%>>two</option>
      <option value="three"<%If strFilterVal = "three" Then Response.Write " selected"%>>three</option>
</select>
<input type="submit">
</form>
peterxlane - sorry for the delay...this was what I needed. Thanks!