Share via


EditModePanel.SuppressTag Property

Gets or sets a value that indicates whether this control will render an outer <DIV> element.

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

Syntax

'Declaration
Public Property SuppressTag As Boolean
    Get
    Set
'Usage
Dim instance As EditModePanel
Dim value As Boolean

value = instance.SuppressTag

instance.SuppressTag = value
public bool SuppressTag { get; set; }

Property Value

Type: System.Boolean

Remarks

Because the EditModePanel control derives from the ASP.NET Panel control, it will naturally emit <DIV> and </DIV> tags around its child content. The SuppressTag property enables you to suppress the generation of these opening and closing elements. One scenario in which this would be very useful is the <Head> section of the page where the EditModePanel control is used to generate, for example, metatags, cascading style sheet links, or script links. The default value is false.

See Also

Reference

EditModePanel Class

EditModePanel Members

Microsoft.SharePoint.Publishing.WebControls Namespace