Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET TextBox ReadOnly Property

ASP.NET TextBox ReadOnly Property


TextBox control TextBox Control


Definition and Usage

The ReadOnly property is used to set or return whether the text in the TextBox control can be changed.

If this property is set to TRUE, the text cannot be changed; otherwise it is FALSE. The default is FALSE.

Syntax

/>


Example

The following example sets the ReadOnly property to "TRUE":

Text="This text is read only" />

Demo Example »


TextBox control TextBox Control