Export (0) Print
Expand All

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)

public bool SuppressTag { get; set; }

Property value

Type: System.Boolean

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.

Community Additions

ADD
Show:
© 2014 Microsoft