Initializes a new instance of the ObjectDataSourceView class.
Assembly: System.Web (in System.Web.dll)
public ObjectDataSourceView( ObjectDataSource owner, string name, HttpContext context )
- Type: System.Web.UI.WebControls.ObjectDataSource
- Type: System.String
A unique name for the data source view, within the scope of the data source control that owns it.
The ObjectDataSourceView constructor is called by the GetView method to return a new instance of a data source view with the specified viewName parameter. The ObjectDataSource control is associated with only one ObjectDataSourceView at any time, and always names the view DefaultView, although this naming restriction is imposed by the ObjectDataSource control, not the ObjectDataSourceView. You can override the GetView method to support views with a different naming convention.