I have a dropdown that is popuated from a database..the problem i am having is when the boxes were origionally hard coeded i had:
<select size="1" name="cbUser" onChange="document.forms[0].submit()">
<option <%if user="John Doe" then%>selected<%end if%>>John Doe</option>
this was done to main state after the form was submitted to itself...now that i am populating the list by looping i am having trouble with maintain this state this is the code i have right now:
Response.Write("<option>" & rs("UserName" & "</option>"
i need to figure out how to get that if statement into the loop...it should just be a syntax issue...but i cant seem to get it...Thanks
<select size="1" name="cbUser" onChange="document.forms[0].submit()">
<option <%if user="John Doe" then%>selected<%end if%>>John Doe</option>
this was done to main state after the form was submitted to itself...now that i am populating the list by looping i am having trouble with maintain this state this is the code i have right now:
Response.Write("<option>" & rs("UserName" & "</option>"
i need to figure out how to get that if statement into the loop...it should just be a syntax issue...but i cant seem to get it...Thanks