System.Web.UI.HtmlControls.HtmlSelect: Property Members

The properties of System.Web.UI.HtmlControls.HtmlSelect are listed below. For a list of all members, see the HtmlSelect Members list.

See Also: Inherited members from System.Web.UI.HtmlControls.HtmlContainerControl

Public Properties

DataMemberstring.

Gets or sets the set of data to bind to the System.Web.UI.HtmlControls.HtmlSelect control from a HtmlSelect.DataSource property with multiple sets of data.

DataSourceobject.

Gets or sets the source of information to bind to the System.Web.UI.HtmlControls.HtmlSelect control.

DataSourceIDstring.

Gets or sets the System.Web.UI.Control.ID property of the data source control that the System.Web.UI.HtmlControls.HtmlSelect control should use to retrieve its data source.

DataTextFieldstring.

Gets or sets the field from the data source to bind to the System.Web.UI.WebControls.ListItem.Text property of each item in the System.Web.UI.HtmlControls.HtmlSelect control.

DataValueFieldstring.

Gets or sets the field from the data source to bind to the System.Web.UI.WebControls.ListItem.Value property of each item in the System.Web.UI.HtmlControls.HtmlSelect control.

override
InnerHtmlstring.

Gets or sets the content between the opening and closing tags of the control without automatically converting special characters to their equivalent HTML entities. This property is not supported for this control.

override
InnerTextstring.

Gets or sets the content between the opening and closing tags of the control with automatic conversion of special characters to their equivalent HTML entities. This property is not supported for this control.

[read-only]
ItemsSystem.Web.UI.WebControls.ListItemCollection.

Gets a collection that contains the items listed in an System.Web.UI.HtmlControls.HtmlSelect control.

Multiplebool.

Gets or sets a value indicating whether multiple items can be selected concurrently in the System.Web.UI.HtmlControls.HtmlSelect control.

Namestring.

Gets or sets the unique identifier name associated with the System.Web.UI.HtmlControls.HtmlSelect control.

SelectedIndexint.

Gets or sets the ordinal index of the selected item in an System.Web.UI.HtmlControls.HtmlSelect control.

Sizeint.

Gets or sets the height (in rows) of the System.Web.UI.HtmlControls.HtmlSelect control.

Valuestring.

Gets the value of the selected item in the System.Web.UI.HtmlControls.HtmlSelect control or sets the HtmlSelect.SelectedIndex property of the control to the index of the first item in the list with the specified value.

Protected Properties

[read-only]
IsBoundUsingDataSourceIDbool.

Gets a value indicating whether a HtmlSelect.DataSourceID property is defined for the System.Web.UI.HtmlControls.HtmlSelect control.

RequiresDataBindingbool.

Gets or sets a value indicating whether the System.Web.UI.HtmlControls.HtmlSelect control needs to bind to its specified data source.

[read-only]
SelectedIndicesint[].

Gets a collection that contains the zero-based indexes of all currently selected items in the System.Web.UI.HtmlControls.HtmlSelect control.