E
eren_greenlady
Guest
i got this code for combo box..
<select name="cStatus" id="cStatus" class="inputField">
<%
While (NOT rsStatusID.EOF)
%>
<option value="<%=(rsStatusID.Fields.Item("status_id").Value)%>" <%If (Not isNull((rsStatusID.Fields.Item("status_name").Value))) Then If (CStr(rsStatusID.Fields.Item("status_id").Value) = CStr((rsStatusID.Fields.Item("status_name").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(rsStatusID.Fields.Item("status_name").Value)%></option>
<%
rsStatusID.MoveNext()
Wend
If (rsStatusID.CursorType > 0) Then
rsStatusID.MoveFirst
Else
rsStatusID.Requery
End If
%>
</select>
i try to make it get the selected item but everytime i'd change the status it only show the first item.. anybody know how to solve this thing??
<select name="cStatus" id="cStatus" class="inputField">
<%
While (NOT rsStatusID.EOF)
%>
<option value="<%=(rsStatusID.Fields.Item("status_id").Value)%>" <%If (Not isNull((rsStatusID.Fields.Item("status_name").Value))) Then If (CStr(rsStatusID.Fields.Item("status_id").Value) = CStr((rsStatusID.Fields.Item("status_name").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(rsStatusID.Fields.Item("status_name").Value)%></option>
<%
rsStatusID.MoveNext()
Wend
If (rsStatusID.CursorType > 0) Then
rsStatusID.MoveFirst
Else
rsStatusID.Requery
End If
%>
</select>
i try to make it get the selected item but everytime i'd change the status it only show the first item.. anybody know how to solve this thing??