JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the ListItem Class

A ListItem object represents an individual data item within a list control, such as a CheckBoxList control or a RadioButtonList control. Here is the inheritance hierarchy of this control:

Object
   ListItem

You can find the notable public properties of ListItem objects in Table 16.6. (This class has no non-inherited methods or events.)

Table 16.6: Noteworthy public properties of ListItem objects.

Property

Means

Selected

True if the item is selected.

Text

Gets/sets the text list item's displayed text.

Value

Gets/sets the list item's value.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor