Cuttie0506
01-26-2006, 07:44 AM
Hi all..
I have a problem with session..
This is my codes for my dropdown list:
<tr>
<td>Status: </td>
<td><select name=status id=select>
<%While (NOT rs_vStatus.EOF)%>
<option value="<%=(rs_vStatus.Fields.Item("status").Value)%>"><%=(rs_vStatus.Fields.Item("status").Value)%></option>
<% rs_vStatus.MoveNext()
Wend
If (rs_vStatus.CursorType > 0) Then
rs_vStatus.MoveFirst
Else
rs_vStatus.Requery
End If %>
</select></td>
</tr>
I populate the dropdown list by retrieving data from a db table.
I have a few buttons, and whenever i click a button to generate something, the initial option that i have selected went back to the 1st option. I want to session the value that i have selected. But where should i put my session codes? I have tried using some ways, but i just wont work.. Hope some1 can help me out. Thanx!
I have a problem with session..
This is my codes for my dropdown list:
<tr>
<td>Status: </td>
<td><select name=status id=select>
<%While (NOT rs_vStatus.EOF)%>
<option value="<%=(rs_vStatus.Fields.Item("status").Value)%>"><%=(rs_vStatus.Fields.Item("status").Value)%></option>
<% rs_vStatus.MoveNext()
Wend
If (rs_vStatus.CursorType > 0) Then
rs_vStatus.MoveFirst
Else
rs_vStatus.Requery
End If %>
</select></td>
</tr>
I populate the dropdown list by retrieving data from a db table.
I have a few buttons, and whenever i click a button to generate something, the initial option that i have selected went back to the 1st option. I want to session the value that i have selected. But where should i put my session codes? I have tried using some ways, but i just wont work.. Hope some1 can help me out. Thanx!