ListControl::Items Property
.NET Framework (current version)
Gets the collection of items in the list control.
Assembly: System.Web (in System.Web.dll)
public: [PersistenceModeAttribute(PersistenceMode::InnerDefaultProperty)] property ListItemCollection^ Items { virtual ListItemCollection^ get(); }
Property Value
Type: System.Web.UI.WebControls::ListItemCollection^The items within the list. The default is an empty list.
Use this property to get the properties of items in the list control. This property can be used to determine the selected items in the list control.
The following example demonstrates how to use the Items property to determine the selected items in a CheckBoxList control.
.NET Framework
Available since 1.1
Available since 1.1
Show: