
CheckBoxList | 835
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
CheckBox
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents a single checkbox that can be selected (True) or left unchecked
(False). The CheckBox class also provides a TextAlign property, which specifies whether text
will appear on the right or left side of the checkbox. To determine whether a checkbox
is selected, examine the Checked property. If you want to use a checkbox with list data,
the CheckBoxList control may be more convenient.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ CheckBox(System.Web.UI.
IPostBackDataHandler)
Subclasses
RadioButton
CheckBoxList
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents a list of checkboxes that can be selected in any combination.
Though this class is generated out of individual checkboxes, it acts like an integrated
list. For example, ASP.NET will add or remove checkbox items as needed when you
bind it to a data source. You can use RepeatDirection to specify how checkboxes will be
grouped together if RepeatColumns is greater than 1. For example, if you set RepeatDirection
to RepeatDirection.Vertical ...