RadioButton ASP.NET Server Control

The RadioButton and RadioButtonList are implemented in exactly the same way as the CheckBox and CheckBoxList, but their functionality is quite different. The RadioButton and RadioButtonList controls enable users to select one option from a group of options. For instance, you might give a user on your Web site the option of paying for purchases or services with VISA, Master Card, or American Express. However, they cannot pay with more than one during any one purchase, so you would want to make them choose one or the other. The RadioButton, demonstrated in Listing 8.20, would be the perfect control to use for this purpose.

Listing 8.20. Using the RadioButton Control
 01: <html> 02: <body Style="Font-Size:10"> ...

Get Programming Data-Driven Web Applications with ASP.NET 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.