Skip to main content
Tab

ASPxVerticalGridCommandButtonSettings.EncodeHtml Property

SECURITY NOTE

Enable this property to protect your website from cross-site scripting (XSS) attacks. Review the following help topic to learn more: HTML Encoding.

Gets or sets whether to encode command button text strings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue(false)]
public bool EncodeHtml { get; set; }

#Property Value

Type Default Description
Boolean false

true to encode command button text strings, false to not encode command button text strings and render them as HTML markup.

#Property Paths

You can access this nested property as listed below:

Library Object Type Path to EncodeHtml
ASP.NET MVC Extensions VerticalGridSettings
.SettingsCommandButton .EncodeHtml
ASP.NET Web Forms Controls ASPxVerticalGrid
.SettingsCommandButton .EncodeHtml

#Remarks

The ASPxVerticalGrid control renders text strings in commands buttons as HTML markup. Set the EncodeHtml property to true to convert service characters (for instance, < and >) in these strings to character entity references (&lt; and &gt;) and display HTML code as text.

See Also