Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with my dynamic combobox
Message
De
03/12/2002 10:29:41
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Problems with my dynamic combobox
Divers
Thread ID:
00728996
Message ID:
00728996
Vues:
49
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform