Bind to a Radio button?

  • Thread starter Andrew J. Kelly
  • Start date
A

Andrew J. Kelly

How do you data bind to a group of radio buttons? I can bind to an
individual radio button just fine but how do you bind a single field to all
the buttons so it works like a Radio button should?
 
M

Manco

Andrew said:
How do you data bind to a group of radio buttons? I can bind to an
individual radio button just fine but how do you bind a single field
to all the buttons so it works like a Radio button should?

Look up RadioButtonList control under WebControls namespace. DataValueField
property has a good example of how do to exactly this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top