Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with my dynamic combobox
Message
From
03/12/2002 10:29:41
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Problems with my dynamic combobox
Miscellaneous
Thread ID:
00728996
Message ID:
00728996
Views:
48
Hello, i have a combobox with an onchage property which submit to its own, i just want that the item i've selected before the onchange goes still remain, right now when the onchange goes it shows up the first element of the combo and not the one i choose previously this is my code:
<%set RsetTipDispositivo= ConBase.execute(SqlQryTipDispositivo)%>
      <select name="CmbTipDispositivo1" style="width:150" onChange="form1.submit()">
          <%while not RsetTipDispositivo.eof
									   if RsetTipDispositivo("Id_TipDispositivo") = request("CmbTipDispositivo1") then %>
                       <option selected value="<%=RsetTipDispositivo("Id_TipDispositivo")%>"><%=RsetTipDispositivo("TipDspNombre")%></option>
                    <%else%>
                       <option value="<%=RsetTipDispositivo("Id_TipDispositivo")%>"><%=RsetTipDispositivo("TipDspNombre")%></option>
                   <%end if%>
                                    <%RsetTipDispositivo.movenext
							  	
								wend
								RsetTipDispositivo.close
								Set RsetTipDispositivo = nothing
				  				%>
                                  </select>
I have something wrong? Thanks for your help.
Next
Reply
Map
View

Click here to load this message in the networking platform