The CheckBoxList and RadioButtonList Controls

ASP.NET's RadioButton and CheckBox controls work fine, but they really provide no support for handling groups of related data. If you want to fill a list of either type of controls with data from a DataSet, for example, you'll need to fill each control's text individually. In addition, keeping track of which items in the list of individual controls have been selected is a chore.

To make working with groups of these controls easier, ASP.NET provides the CheckBoxList and RadioButtonList controls. Both controls allow you to bind their lists to data sources and fill these lists at runtime. The major difference between the two is that you can select as many items as you require using the CheckBoxList control, ...

Get ASP.NET Developer's JumpStart 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.