BoundField.HtmlEncode Property
.NET Framework 3.0
Gets or sets a value indicating whether field values are HTML-encoded before they are displayed in a BoundField object.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_HtmlEncode () /** @property */ public void set_HtmlEncode (boolean value)
public function get HtmlEncode () : boolean public function set HtmlEncode (value : boolean)
Not applicable.
Property Value
true if field values are HTML-encoded before they are displayed in a BoundField object; otherwise, false. The default is true.Use the HtmlEncode property to specify whether field values are HTML-encoded to their respective string representations before they are displayed in a BoundField object.
Note: |
|---|
| HTML-encoding field values helps to prevent cross-site scripting attacks and malicious content from being displayed. This property should be enabled whenever possible. |
Community Additions
ADD
Show:
Note: