SPContext.SetDesignTimeOnContext method
Set the current context in design rendering mode
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub SetDesignTimeOnContext
'Usage
Dim instance As SPContext
instance.SetDesignTimeOnContext()
public void SetDesignTimeOnContext()
Remarks
Controls in the request will now rendering using their design renditions. A control can find out if the current request is in design time by using the IsDesignTime property.