Gets or sets a value indicating whether the contents of the TextBox control can be changed.
Assembly: System.Web (in System.Web.dll)
Use the TextBox control can be changed. Setting this property to true will prevent users from entering a value or changing the existing value. Note that the user of the TextBox control cannot change this property; only the developer can.property to specify whether the contents of the
The Text value of a TextBox control with the property set to true is sent to the server when a postback occurs, but the server does no processing for a read-only text box. This prevents a malicious user from changing a Text value that is read-only. The value of the Text property is preserved in the view state between postbacks unless modified by server-side code.
The following code example demonstrates how to use the TextBox control.property to prevent any changes to the text displayed in the
This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.
Available since 1.1