ObjectDataSource.GetView Method
.NET Framework 3.0
Retrieves 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)
Assembly: System.Web (in system.web.dll)
protected DataSourceView GetView ( String viewName )
protected override function GetView ( viewName : String ) : DataSourceView
Not applicable.
Parameters
- viewName
The name of the view to retrieve. Because the ObjectDataSource supports only one view, viewName is ignored.
Return Value
The ObjectDataSourceView named DefaultView that is associated with the ObjectDataSource.The ObjectDataSource control supports only one data source view. As with all data source view objects, the ObjectDataSourceView that is associated with the data source control defines its capabilities, performs all the work that is necessary to retrieve data from the underlying data storage, and performs operations such as sorting, inserting, deleting, and updating.
Note: |
|---|
| If you are not familiar with the Data Access features in ASP.NET 2.0, you should read some of these topics before continuing: |
The GetView method is intended to be called by data-bound controls, not by page code.
Community Additions
ADD
Show:
Note: