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)
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.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note