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)

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.

See also

Reference

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace