Defines the interface a control implements to get or set its text content.
Assembly: System.Web (in System.Web.dll)
A control implementing this interface can be used to display user input. Before displaying user input, the input must be checked for malicious client script, such as executable script or SQL statements. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see Validation Server Control Syntax.
Legacy Code Example
The following code example shows a custom control that implements the T:System.Web.UI.ITextControl interface. A default value is assigned to the Text property if null is passed to the property.Code snippet is not found. Confirm that the code snippet name 'System.Web.UI.ITextControl' is correct.
Available since 2.0