Easy Tutorial
❮ Control Table Prop Webcontrol Calendar Nextprevstyle ❯

ASP.NET ListControl Control



Definition and Usage

The ListControl control provides all basic functionality for list controls. Controls that inherit from this control include: CheckBoxList, DropDownList, ListBox, and RadioButtonList classes.

The properties of the ListControl class allow you to specify the data source used to populate the list control.


Properties

Property Description .NET
AppendDataBoundItems Gets or sets a Boolean value indicating whether list items are cleared before data binding. 2.0
AutoPostBack Gets or sets a value indicating whether an automatic postback to the server occurs when the user changes the list selection. 1.0
CausesValidation Specifies whether the page is validated when an item in the list control is clicked. 2.0
DataTextField The data source field that provides text content for the list items. 1.0
DataTextFormatString The formatting string used to control how list data is displayed. 1.0
DataValueField The data source field that provides the value for each list item. 1.0
Items The collection of items in the list control. 1.0
runat Specifies that the control is a server control. Must be set to "server". 1.0
SelectedIndex The ordinal index of the selected item in the list. 1.0
SelectedItem The text of the selected item in the list. 1.0
SelectedValue The value of the selected item in the list. 1.0
TagKey 1.0
Text The value of the selected item in the list. 2.0
ValidationGroup The group of controls for which the control causes validation when it posts back to the server. 2.0
OnSelectedIndexChanged The name of the function to execute when the index of the selected item is changed. 1.0

❮ Control Table Prop Webcontrol Calendar Nextprevstyle ❯