Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sync a drop down to existing data?
Message
 
À
15/04/2003 11:14:29
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00777710
Message ID:
00778130
Vues:
21
>Stephen,
>
>You need to DataBind it, like this:
>
>this.DataBindings.Add("SelectedValue", MyDataSet, "ap_opening");
>
Uhm, that's Windows Forms code <g>...

But yeah, you can just assign the value to the SelectValue property in code or use the DataBinding expressions in the HTML text.

FWIW, SelectedValue is new property for list style items in .Net 1.1. It doesn't exist in 1.0 for Web forms.

+++ Rick ---

>
>~~Bonnie
>
>
>>I have an edit page with a few (to many) drop downs.
>>
>>First is Opening, the Select Distinct from the data brings back 8 items and I add the other 2 making a total of 10 items.
>>
>>When the user picks a new item to edit how do I sync the opening "Left" dropdown with the dataset ap_opening column?
>>
>>TIA
>>
>>__Stephen
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform