System.Web.UI.HtmlControls.HtmlSelect.GetData Method

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

Syntax

protected virtual IEnumerable GetData ()

Returns

An IEnumerable object. If no data source is specified, a default value of null is returned.

Remarks

The HtmlSelect.GetData method returns an IEnumerable object independent of whether the data source was specified by the HtmlSelect.DataSource property or the HtmlSelect.DataSourceID property.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0