
ListItem | 865
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
ListControl
System.Web.UI.WebControls (system.web.dll)
disposable
abstract class
This abstract base class for all list controls includes data-binding functionality (such as
DataTextFormatString, which specifies the formatting of bound text), an Items collection, and
properties for returning the first selected item (SelectedIndex and SelectedItem).
Note that items in the ListControl class do not correspond to the specific derived control
type. For example, a CheckBoxList control returns its selected item as a ListItem, as all list
controls do, not as an individual checkbox control.
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) ➝ ListControl
Subclasses
CheckBoxList, DropDownList, ListBox, RadioButtonList
ListItem
System.Web.UI.WebControls (system.web.dll)
sealed class
This class represents an individual item from the list of a ListControl, such as CheckBoxList,
DropDownList, RadioButtonList, and ListBox. The Text property returns the text for the list item,
the Value property returns the contents of the “hidden” value attribute, and the Selected
property indicates whether or not it is currently ...