DataFormWebPart.CanHaveServerControls Property
Gets or sets a Boolean value that indicates whether the current Web Part can render server controls.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<WebBrowsableAttribute(False)> _
<BrowsableAttribute(False)> _
Public Overridable Property CanHaveServerControls As Boolean
Get
Set
'Usage
Dim instance As DataFormWebPart
Dim value As Boolean
value = instance.CanHaveServerControls
instance.CanHaveServerControls = value
[WebBrowsableAttribute(false)]
[BrowsableAttribute(false)]
public virtual bool CanHaveServerControls { get; set; }
Property Value
Type: System.Boolean
true if the current Web Part can render server controls; otherwise, false.