Export (0) Print
Expand All

SqlDataSource::GetView Method

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

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected:
virtual DataSourceView^ GetView(
	String^ viewName
) override

Parameters

viewName
Type: System::String

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

Return Value

Type: System.Web.UI::DataSourceView
The SqlDataSourceView named "Table" that is associated with the SqlDataSource.

ExceptionCondition
ArgumentException

viewName is nullptr or something other than Table.

The SqlDataSource control supports only one data source view. As with all data source view objects, the 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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft