Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a table to a DropDownList
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00898316
Message ID:
00898571
Vues:
11
>> 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

I don't want to circumvent the question... I hope Bob does give you an answer, but as it worked out in my case...
The table I needed to update is storing the text value as opposed to the unique_id, so in my case, I didn't need it...

normally, I think you're right... but if you look at my various posts, you'll see I don't know much yet... so, I hope Bob does give you/us an answer.

Rick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform