aspnet-devexpress-dot-web-dot-aspxverticalgridcommandbuttonsettings.md
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.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(false)]
public bool EncodeHtml { get; set; }
<DefaultValue(False)>
Public Property EncodeHtml As Boolean
| 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.
|
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
|
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 (< and >) and display HTML code as text.
See Also
ASPxVerticalGridCommandButtonSettings Class