SqlDataSourceView.SqlDataSourceView Constructor

Initializes a new instance of the SqlDataSourceView class setting the specified SqlDataSource control as the owner of the current view.

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

public:
SqlDataSourceView (
	SqlDataSource^ owner, 
	String^ name, 
	HttpContext^ context
)
public SqlDataSourceView (
	SqlDataSource owner, 
	String name, 
	HttpContext context
)
public function SqlDataSourceView (
	owner : SqlDataSource, 
	name : String, 
	context : HttpContext
)
Not applicable.

Parameters

owner

The data source control with which the SqlDataSourceView is associated.

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 SqlDataSourceView constructor is called by the GetView method to return a new instance of a data source view with the specified name parameter. The SqlDataSource control is associated with only one SqlDataSourceView object at any one time, and always names the view Table, although this naming restriction is imposed by the SqlDataSource control, not the SqlDataSourceView. You can override the GetView method to support views with a different naming convention.

The HttpContext object that is passed by the context parameter is used by the data source view to access parameter objects, such as the 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: