HtmlSelect.GetData Method

Note: This method is new in the .NET Framework version 2.0.

Gets an IEnumerable object that represents the data source that is bound to the HtmlSelect control.

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in system.web.dll)

protected:
virtual IEnumerable^ GetData ()
protected IEnumerable GetData ()
protected function GetData () : IEnumerable

Return Value

An IEnumerable object. If no data source is specified, a default value of a null reference (Nothing in Visual Basic) is returned.

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

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: