HtmlSelect.Items Property
.NET Framework 3.0
Gets a collection that contains the items listed in an HtmlSelect control.
Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public ListItemCollection get_Items ()
public function get Items () : ListItemCollection
Not applicable.
Property Value
A System.Web.UI.WebControls.ListItemCollection that contains the items listed in an HtmlSelect control.Use the Items collection to manage the items listed in the HtmlSelect control. You can programmatically add items to, remove items from, and insert items into the collection.
The Items collection is commonly used to iterate through the items in the HtmlSelect control. For example, when multiple items are selected, you can iterate through the Items collection to determine which items are selected.
Community Additions
ADD
Show: