Selecting Values
Several ASP.NET server controls allow the user to select a value or values:
CheckBoxAllows selection of Boolean data
CheckBoxListA group of
CheckBoxcontrols that can be dynamically created and bound to a data sourceRadioButtonAllows only a single option to be selected from a group
RadioButtonListA group of
RadioButtoncontrols that can be dynamically created and bound to a data sourceListBoxAllows selection of one or more items from a predefined list
DropDownListSimilar to a
ListBox, but allows only a single selection and displays the list only once the user has clicked itBulletedListFormatted with bullets and can be simple text or a link
All of these controls derive from the WebControl class, as shown in Figure 3-8 in Chapter 3. The RadioButton derives further from the CheckBox class, and the list controls all derive from the abstract ListControl class. We consider each of these controls and their AJAX Control Toolkit extenders in detail in upcoming sections. Also included in this section are two standalone AJAX controls, the Slider and Rating controls, which also allow you to select a value.
CheckBox Control
A CheckBox control provides a means for a user to select Boolean data (i.e., Yes/No or True/False). If you have several checkboxes arranged together (not to be confused with a CheckBoxList, discussed next), you can select multiple options. No option is mutually exclusive of another.
The CheckBox and RadioButton controls implement the ICheckBoxControl interface. This ...