Back to Devexpress

ASPxGridView.PreviewEncodeHtml Property

aspnet-devexpress-dot-web-dot-aspxgridview-2877d5d3.md

latest1.4 KB
Original Source

ASPxGridView.PreviewEncodeHtml Property

SECURITY-RELATED CONSIDERATIONS

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 preview row content.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool PreviewEncodeHtml { get; set; }
vb
<DefaultValue(True)>
Public Property PreviewEncodeHtml As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

See Also

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace