Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a table to a DropDownList
Message
De
27/04/2004 10:50:18
 
 
À
26/04/2004 18:18:08
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00898316
Message ID:
00898540
Vues:
14
> oledbDA.SelectCommand = oledbCMD
> oledbDA.Fill(oledbDS, "NotesHistoryType")
> cboNotesHistoryType.DataSource = oledbDS.Tables("NotesHistoryType")

>After this you need:

>cboNotesHistoryType.DataTextField = "Type";
>cboNotesHistoryType.DataBind();

Bob,

Maybe this is a bad question, but don't you need to supply the DataValueField as well? (the unique id). Just curious...I haven't worked as much with web forms.

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform