ObjectDataSourceView.ObjectDataSourceView Constructor

Initializes a new instance of the ObjectDataSourceView class.

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

public:
ObjectDataSourceView (
	ObjectDataSource^ owner, 
	String^ name, 
	HttpContext^ context
)
public ObjectDataSourceView (
	ObjectDataSource owner, 
	String name, 
	HttpContext context
)
public function ObjectDataSourceView (
	owner : ObjectDataSource, 
	name : String, 
	context : HttpContext
)
Not applicable.

Parameters

owner

The ObjectDataSourceView that the ObjectDataSourceView is associated with.

name

A unique name for the data source view, within the scope of the data source control that owns it.

context

The current HttpContext.

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.

The HttpContext object that is passed by context is used by the data source view to access parameter objects, such as FilterParameters and SelectParameters properties.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: