ImageField::ReadOnly Property
Gets or sets a value indicating whether the values of the field specified by the DataImageUrlField property can be modified in edit mode.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::Booleantrue to indicate that the field values cannot be modified in edit mode; otherwise, false. The default is false.
By default, the values of the field specified by the DataImageUrlField property can be modified by the user when a data-bound control is in edit mode. To prevent the user from changing the values of the field, set this property to true.
Note |
|---|
In an ImageField object, the DataImageUrlField property usually contains the name of the field that contains the URLs to the images displayed in the object. |
The following example demonstrates how to use the ReadOnly property to indicate that the field values that represent the URLs to the images displayed in an ImageField object cannot be modified in edit mode.
Available since 2.0
