Back to Devexpress

DataViewSettingsBase.EmptyDataText Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-dataviewsettingsbase.md

latest2.1 KB
Original Source

DataViewSettingsBase.EmptyDataText Property

SECURITY-RELATED CONSIDERATIONS

Setting this property to values from an untrusted source may introduce security-related issues, since the property value is not encoded and is rendered as HTML markup. Call the Html.Encode method to encode the value.

Review the following help topic to better protect websites from cross-site scripting (XSS) attacks: HTML Encoding.

Gets or sets the text displayed within the DataView’s empty data area.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public string EmptyDataText { get; set; }
vb
Public Property EmptyDataText As String

Property Value

TypeDescription
String

A string value that specifies the text.

|

Remarks

Use the EmptyDataText property to manipulate the text within the DataView‘s empty data area.

See Also

SetEmptyItemTemplateContent

DataView

DataViewSettingsBase Class

DataViewSettingsBase Members

DevExpress.Web.Mvc Namespace