Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

SPControl.SetContextSite method

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

public static void SetContextSite(
	HttpContext context,
	SPSite site
)

Parameters

context
Type: System.Web.HttpContext
site
Type: Microsoft.SharePoint.SPSite
Show:
© 2015 Microsoft