crystalized
Programmer
I have a search form that creates two dropdown lists from recordsets (used to allow search refinements). When I execute the search my results come back very quickly in IE but after I execute the search I find my dropdown lists each have only the first recordset option added to them.
So originally I have 3 options in the first dropdown and 26 in the second dropdown (one option in each is a "select one" option). In order to populate the dropdowns I simply loop through the recordsets and add options for each record in the recordset. The following is an example:
In essence the page just calls itself again, with the selected and entered values as a querystring.
But after the search I have 1 recordset provided option in the first dropdown and 1 recordset provided option in the second dropdown. So it seems like it is not looping through the recordsets again.
Is the solution to this problem something that should be blatantly obvious to me?
Crystal
crystalized_s@yahoo.com
--------------------------------------------------
Experience is one thing you can't get for nothing.
-Oscar Wilde
So originally I have 3 options in the first dropdown and 26 in the second dropdown (one option in each is a "select one" option). In order to populate the dropdowns I simply loop through the recordsets and add options for each record in the recordset. The following is an example:
Code:
<select id="cmbProv" name="cmbProv">
<option Value="99">Select One</option>
<%
dim currProv
do while not rcsProvList.EOF
currProv=txtProv.value
%>
<option value="<%=currProv%>"><%=currProv%></option>
<%
rcsProvList.moveNext
loop
%>
</select>
But after the search I have 1 recordset provided option in the first dropdown and 1 recordset provided option in the second dropdown. So it seems like it is not looping through the recordsets again.
Is the solution to this problem something that should be blatantly obvious to me?
Crystal
crystalized_s@yahoo.com
--------------------------------------------------
Experience is one thing you can't get for nothing.
-Oscar Wilde