Skip to main content

ASPxCardViewCommandButtonSettings.EncodeHtml Property


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.1.dll

NuGet Package: DevExpress.Web


public bool EncodeHtml { get; set; }

Property Value

Type Default Description
Boolean false

true to encode command button text strings and display them as text, 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 Web Forms Controls ASPxCardView
.SettingsCommandButton .EncodeHtml
ASP.NET MVC Extensions CardViewSettings
.SettingsCommandButton .EncodeHtml


The ASPxCardView 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