DataSourceExpression.SetContext Method (Control, HttpContext, IQueryableDataSource)

.NET Framework (current version)
 

Sets the HTTP context of the DataSourceExpression object that uses the specified owner control, HttpContext instance, and IQueryableDataSource object.

Namespace:   System.Web.UI.WebControls.Expressions
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public virtual void SetContext(
	Control owner,
	HttpContext context,
	IQueryableDataSource dataSource
)

Parameters

owner
Type: System.Web.UI.Control

The owner control of the IQueryable data source object.

context
Type: System.Web.HttpContext

The data context to use.

dataSource
Type: System.Web.UI.WebControls.IQueryableDataSource

The IQueryable data source object to use.

.NET Framework
Available since 4.0
Return to top
Show: