Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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:
© 2015 Microsoft