System.Web.UI.DataSourceView.ExecuteSelect Method

Gets a list of data from the underlying data storage.

Syntax

protected abstract IEnumerable ExecuteSelect (DataSourceSelectArguments arguments)

Parameters

arguments
A System.Web.UI.DataSourceSelectArguments that is used to request operations on the data beyond basic data retrieval.

Returns

An IEnumerable list of data from the underlying data storage.

Remarks

The DataSourceView.ExecuteSelect(DataSourceSelectArguments) method is called to retrieve data from the underlying data store and return it as an IEnumerable object. All data source controls support data retrieval from their underlying data storage, even if other operations such as insertion and sorting are not supported. Because a data-bound control can request a list of data at any time as a result of a IDataSource.DataSourceChanged event or a System.Web.UI.WebControls.BaseDataBoundControl.DataBind method call, the data retrieval must be performed on demand.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0