Back to Devexpress

FilterBox.Caption Property

aspnet-devexpress-dot-web-dot-filterbox.md

latest1.5 KB
Original Source

FilterBox.Caption 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 HttpUtility.HtmlEncode 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 filter’s caption.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("Filter:   ")]
public string Caption { get; set; }
vb
<DefaultValue("Filter:   ")>
Public Property Caption As String

Property Value

TypeDefaultDescription
String"Filter: "

A string value that specifies the filter’s caption.

|

Remarks

The filter’s caption is displayed to the left of the filter box.

See Also

FilterBox Class

FilterBox Members

DevExpress.Web Namespace