Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to bind a set of radiobuttons to a single datasource
Message
De
22/11/2005 12:43:57
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01071197
Message ID:
01071224
Vues:
19
Hi Rick,

The Radio Button control does not have a DataBind() method. You'd need to sub-class and add your own data binding methodology, which I haven't done (because I haven't yet used Radio Buttons in my app) ... if I had done it already, I'd post some code for you.

I noticed that you posted essentially the same question under the MM category ... I don't use MM, so I have no clue if Kevin has addressed DataBinding in Radio Buttons, but I would hope that he addresses the issue somehow.

~~Bonnie



>Hi,
>
>For sake of example, lets say:
>
>I have a 3 radio buttons (captioned Apple, Cherry and Watermelon) and that I have a datatable with a a string field called cFavoriteFruit.
>
>I want the cFavoriteFruit field to hold the value of the name of the fruit chosen with the radio buttons.
>
>I'd prefer to do this with databinding, not the CheckChanged event.
>
>Can anyone give me guidance here?
>
>Thanks,
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform