Export (0) Print
Expand All

SPControl.SetContextWeb method

Specifies the context and SPWeb for the control.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static void SetContextWeb(
	HttpContext context,
	SPWeb web
)

Parameters

context
Type: System.Web.HttpContext

The HTTP context of the request.

web
Type: Microsoft.SharePoint.SPWeb

The SPWeb containing the page that contains this control.

Show:
© 2014 Microsoft