System.Web.UI.WebControls.SqlDataSource.CreateDataSourceView Method

Creates a data source view object that is associated with the data source control.

Syntax

protected virtual SqlDataSourceView CreateDataSourceView (string viewName)

Parameters

viewName
The name of the data source view.

Returns

A System.Web.UI.WebControls.SqlDataSourceView that is associated with the System.Web.UI.WebControls.SqlDataSource.

Remarks

Classes that derive from the System.Web.UI.WebControls.SqlDataSource class can override the SqlDataSource.CreateDataSourceView(string) method to return strongly typed data source view objects.

Requirements

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