Skip to main content

TreeListSettingsBehavior.EncodeErrorHtml Property

SECURITY NOTE

Disabling this property may introduce security-related issues. Review the following help topic and learn how to protect websites from cross-site scripting (XSS) attacks: HTML Encoding.

Gets or sets whether to encode error row content.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool EncodeErrorHtml { get; set; }

Property Value

Type Default Description
Boolean true

true to encode error row content and display it as text, false to not encode error row content and render it as HTML markup.

Property Paths

You can access this nested property as listed below:

Object Type Path to EncodeErrorHtml
ASPxTreeList
.SettingsBehavior .EncodeErrorHtml

Remarks

The ASPxTreeList control converts service characters (for instance, < and >) in error row content to character entity references (&lt; and &gt;) and displays HTML code as text. Set the EncodeHtml property to false to prevent such a convertion and render error row content as HTML markup.

Web Forms:

<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" ...>
    ...
    <SettingsBehavior EncodeErrorHtml="false" />
</dx:ASPxTreeList>

MVC:

@Html.DevExpress().TreeList(settings => {
    settings.Name = "TreeList";
    settings.SettingsBehavior.EncodeErrorHtml = false;
    ...
}).GetHtml()  

Concept

HTML Encoding

See Also