System.Web.UI.WebControls.SqlDataSource.GetView Method

Gets the named data source view that is associated with the data source control.

Syntax

protected override System.Web.UI.DataSourceView GetView (string viewName)

Parameters

viewName
The name of the view to retrieve. Because the System.Web.UI.WebControls.SqlDataSource supports only one view, viewName is ignored.

Returns

The System.Web.UI.WebControls.SqlDataSourceView named "Table" that is associated with the System.Web.UI.WebControls.SqlDataSource.

Remarks

The System.Web.UI.WebControls.SqlDataSource control supports only one data source view. As with all data source view objects, the System.Web.UI.WebControls.SqlDataSourceView object that is associated with the data source control defines its capabilities, performs all work that is necessary to retrieve data from the underlying database, and performs operations, such as sorting, inserting, deleting, and updating.

Requirements

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