R
RColes
I have several long drop-down lists, i.e.;
<select size="1" name="UserArea" style="font-family: Book Antiqua;
font-size: 8pt">
<option selected></option>
<option>OD/OCD</option>
<option>ITSO</option>
<option>even more</option>
</select>
If there is an error on some of the fields I redisplay the page and all
fields except the selected box value are displayed.
<%
Select Case TransactionCode
Case "Submit"
Session("UserArea") = Request.form("UserArea")
If session("UserArea") = "" Then
ErrorMessage = "Please select area."
Else UserArea = session("UserArea")
ErrorMessage = session("UserArea")
End IF
...
%>
This prints out the last value selected, but UserArea remains in it's
initial state (nothing selected). I don't want them to have to reselect the
drop down they selected every time they change out the page.
RequestForm("UserArea") = session("UserArea") gives me an error.
How can I reset UserArea to the last value selected following a "Submit"?
<select size="1" name="UserArea" style="font-family: Book Antiqua;
font-size: 8pt">
<option selected></option>
<option>OD/OCD</option>
<option>ITSO</option>
<option>even more</option>
</select>
If there is an error on some of the fields I redisplay the page and all
fields except the selected box value are displayed.
<%
Select Case TransactionCode
Case "Submit"
Session("UserArea") = Request.form("UserArea")
If session("UserArea") = "" Then
ErrorMessage = "Please select area."
Else UserArea = session("UserArea")
ErrorMessage = session("UserArea")
End IF
...
%>
This prints out the last value selected, but UserArea remains in it's
initial state (nothing selected). I don't want them to have to reselect the
drop down they selected every time they change out the page.
RequestForm("UserArea") = session("UserArea") gives me an error.
How can I reset UserArea to the last value selected following a "Submit"?