ButtonField.Text Property
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] public: virtual property String^ Text { String^ get (); void set (String^ value); }
/** @property */ public String get_Text () /** @property */ public void set_Text (String value)
public function get Text () : String public function set Text (value : String)
Not applicable.
Property Value
The caption displayed for each button in the ButtonField. The default is an empty string ("").When the ButtonType property of a ButtonField object is set to the Button or Link value, use the Text property to display static text for the caption of the buttons in the ButtonField. Each button shares the same caption.
Instead of using the Text property to display static text in a ButtonField object, you can use the DataTextField property to bind the ButtonField to a field in a data source. The values of the field are then displayed as the caption of the buttons.
Note: |
|---|
| If the DataTextField and Text properties are both set, the DataTextField property takes precedence. |
The value of this property is stored in view state.
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.
Note: