Using the RadioButton Control

You always use the RadioButton control in a group. Only one radio button in a group of RadioButton controls can be checked at a time.

For example, the page in Listing 2.12 contains three RadioButton controls (see Figure 2.9).

Figure 2.9. Displaying RadioButton.

image

Listing 2.12. ShowRadioButton.aspx

images

images

images

The RadioButton controls ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.