System.Web.UI.HtmlControls.HtmlSelect Members

The members of System.Web.UI.HtmlControls.HtmlSelect are listed below.

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

Public Constructors

Initializes a new instance of the System.Web.UI.HtmlControls.HtmlSelect class.

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.

Protected Methods

override
AddParsedSubObject(object)

Adds a parsed child control to the System.Web.UI.HtmlControls.HtmlSelect control.

ClearSelection()

Clears the list selection of the System.Web.UI.HtmlControls.HtmlSelect control and sets the System.Web.UI.WebControls.ListItem.Selected property of all items to false.

override
CreateControlCollection() : System.Web.UI.ControlCollection

Creates an System.Web.UI.EmptyControlCollection object for the System.Web.UI.HtmlControls.HtmlSelect control.

EnsureDataBound()

Verifies that the System.Web.UI.HtmlControls.HtmlSelect control requires data binding and that a valid data source control is specified before calling the System.Web.UI.Control.DataBind method.

GetData() : IEnumerable

Gets an IEnumerable object that represents the data source that is bound to the System.Web.UI.HtmlControls.HtmlSelect control.

LoadPostData(string, System.Collections.Specialized.NameValueCollection) : bool

Processes the postback data for the System.Web.UI.HtmlControls.HtmlSelect control.

override
LoadViewState(object)

Restores the System.Web.UI.HtmlControls.HtmlSelect control's view state information from a previous page request that was saved by the HtmlSelect.SaveViewState method.

override
OnDataBinding(EventArgs)

Raises the System.Web.UI.Control.DataBinding event of an System.Web.UI.HtmlControls.HtmlSelect control.

OnDataPropertyChanged()

Invoked when the HtmlSelect.DataSource, HtmlSelect.DataMember, or HtmlSelect.DataSourceID property is changed.

OnDataSourceViewChanged(object, EventArgs)

Invoked when the HtmlSelect.DataSource, HtmlSelect.DataMember, or HtmlSelect.DataSourceID property is changed.

override
OnInit(EventArgs)

Raises the System.Web.UI.Control.Init event for the System.Web.UI.HtmlControls.HtmlSelect control.

override
OnLoad(EventArgs)

Raises the System.Web.UI.Control.Load event for the System.Web.UI.HtmlControls.HtmlSelect control.

OnPagePreLoad(object, EventArgs)
Documentation for this section has not yet been entered.
override
OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event for the System.Web.UI.HtmlControls.HtmlSelect control.

OnServerChange(EventArgs)

Raises the HtmlSelect.ServerChange event of the System.Web.UI.HtmlControls.HtmlSelect control. This allows you to provide a custom handler for the event.

RaisePostDataChangedEvent()

Calls the HtmlSelect.OnServerChange(EventArgs) method to signal the System.Web.UI.HtmlControls.HtmlSelect control that the state of the control has changed.

override
RenderAttributes(System.Web.UI.HtmlTextWriter)

Renders the System.Web.UI.HtmlControls.HtmlSelect control's attributes to the specified System.Web.UI.HtmlTextWriter object.

override
RenderChildren(System.Web.UI.HtmlTextWriter)

Renders the System.Web.UI.HtmlControls.HtmlSelect control's child controls to the specified System.Web.UI.HtmlTextWriter object.

override
SaveViewState() : object

Saves any System.Web.UI.HtmlControls.HtmlSelect control view state changes that have occurred since the page was posted back to the server.

Select(int[])

Selects multiple items of the System.Web.UI.HtmlControls.HtmlSelect control's HtmlSelect.Items collection.

override
TrackViewState()

Tracks view state changes to the System.Web.UI.HtmlControls.HtmlSelect control so the changes can be stored in the control's System.Web.UI.StateBag object. This object is accessible through the System.Web.UI.Control.ViewState property.

Public Events

ServerChange

Occurs when the selected items in the System.Web.UI.HtmlControls.HtmlSelect control change between posts to the server.

Explicitly Implemented Interface Members