Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with my dynamic combobox
Message
 
To
03/12/2002 10:29:41
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00728996
Message ID:
00729000
Views:
12
>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:
>
>< % ERROR: set RsetTipDispositivo= ConBase.execute(SqlQryTipDispositivo) % >
>      <select name="CmbTipDispositivo1" style="width:150" onChange="form1.submit()">
>          < % ERROR: while not RsetTipDispositivo.eof
>									   if RsetTipDispositivo("Id_TipDispositivo") = request("CmbTipDispositivo1") then  % >
>                       <option selected value="< % ERROR: =RsetTipDispositivo("Id_TipDispositivo") % >">< % ERROR: =RsetTipDispositivo("TipDspNombre") % ></option>
>                    < % ERROR: else % >
>                       <option value="< % ERROR: =RsetTipDispositivo("Id_TipDispositivo") % >">< % ERROR: =RsetTipDispositivo("TipDspNombre") % ></option>
>                   < % ERROR: end if % >
>                                    < % ERROR: RsetTipDispositivo.movenext
>							  	
>								wend
>								RsetTipDispositivo.close
>								Set RsetTipDispositivo = nothing
>				  				 % >
>                                  </select>
>
>I have something wrong? Thanks for your help.

Edgar;

I have not tried this but you might try onBlur.

Tom
Previous
Reply
Map
View

Click here to load this message in the networking platform