SqlDataSource::GetView Method (String^)
.NET Framework (current version)
Gets the named data source view that is associated with the data source control.
Assembly: System.Web (in System.Web.dll)
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.
| Exception | Condition |
|---|---|
| ArgumentException | viewName is null 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
Available since 2.0
Available since 2.0
Show: