ListControl.Items Property

 

Gets the collection of items in the list control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[<PersistenceModeAttribute(PersistenceMode.InnerDefaultProperty)>]
abstract Items : ListItemCollection with get
[<PersistenceModeAttribute(PersistenceMode.InnerDefaultProperty)>]
override Items : ListItemCollection with 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: