ListControl::Items Property
Gets the collection of items in the list control.
Assembly: System.Web (in System.Web.dll)
[PersistenceModeAttribute(PersistenceMode::InnerDefaultProperty)] public: virtual property ListItemCollection^ Items { ListItemCollection^ get (); }
Property Value
Type: System.Web.UI.WebControls::ListItemCollectionA ListItemCollection that represents 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.
| Topic | Location |
|---|---|
| How to: Set Web Server Control Properties in Collections | Building ASP .NET Web Applications |
| How to: Set Web Server Control Properties in Collections | Building ASP .NET Web Applications |
The following example demonstrates how to use the Items property to determine the selected items in a CheckBoxList control.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.