Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing combo box values dinamically
Message
De
12/03/2001 07:39:30
 
 
À
09/03/2001 20:29:34
Fausto Garcia
Independent Developer
Lima, Pérou
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00483763
Message ID:
00483991
Vues:
8
>Hi to all,
>
>I need to put 2 combo boxes in a HTML page so that the values of the second one depend on the selection made on the first one. How can I do this?


2 solutions here:

1-Client side script
If you have a limited set of data, you can place all your logic in your HTML page and code with JavaScript.

2-Server side script
If you have lots of data or the logic behind it is difficult to implement in client side script, when a user select something in the 1st combo, post the form and use server side script to fill the second combo. The downside here is that there's a server request each time a selection is made in the 1st combo.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform