LinqDataSource::GetView Method
Returns the data source view that is associated with the LinqDataSource object.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Parameters
- viewName
- Type: System::String
The name of the view to retrieve, which must be "DefaultView".
Return Value
Type: System.Web.UI::DataSourceViewThe data source view that is associated with the LinqDataSource object.
| Exception | Condition |
|---|---|
| ArgumentException | viewName is nullptr or something other than "DefaultView". |
The LinqDataSource control supports only one data source view. The LinqDataSourceView object has a default name of "DefaultView". The LinqDataSourceView object defines the data source control's capabilities, retrieves data from the underlying database, and performs operations such as sort, insert, delete, and update.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.