SPControl.SetContextWeb method
Specifies the context and SPWeb for the control.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub SetContextWeb ( _
context As HttpContext, _
web As SPWeb _
)
'Usage
Dim context As HttpContext
Dim web As SPWebSPControl.SetContextWeb(context, web)
public static void SetContextWeb(
HttpContext context,
SPWeb web
)
Parameters
context
Type: System.Web.HttpContextThe HTTP context of the request.
web
Type: Microsoft.SharePoint.SPWebThe SPWeb containing the page that contains this control.