aspnet-devexpress-dot-web-dot-aspxbutton-5872fa08.md
Gets or sets the text displayed within the button control.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public string Text { get; set; }
<DefaultValue("")>
Public Property Text As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value representing the text displayed within the button control.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Text property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
btnOk.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonOk);
btnCancel.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonCancel);
ASPxButton button = new ASPxButton();
button.Text = "Click me!";
button.EnableClientSideAPI = true;
btnOk.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonOk)
btnCancel.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonCancel)
Dim button As New ASPxButton()
button.Text = "Click me!"
button.EnableClientSideAPI = True
See Also