why all of the parenthases ?
OK, wow...
it looks like you tried to convert javascript over to
VB script or something...
you have an IF/ THEN on the same line as the end of the "/OPTION"
it will only hit the "</option>" if the IF is true...
Something like that would work in javascript but not in
VB script / ASP
(unless i am completely un aware of that functionality... for the past 10 years)
try something like this
Code:
DO While NOT rs_vWeek.EOF
strSelected=""
IF LEN(Session("week"))>0 THEN
IF CStr(rs_vWeek("Weekly")) = CStr(Session("week")) Then
strSelected=" SELECTED"
END IF
END IF
Response.write "<option value='" & rs_vWeek("Weekly") & "'" & strSelected & ">" & rs_vWeek.Fields("Weekly") & "</option>" rs_vWeek.MoveNext
LOOP
If rs_vWeek.CursorType > 0 Then
rs_vWeek.MoveFirst
Else
rs_vWeek.Requery
End If