Button Text Property


Button Control Button Control

Definition and Usage

The Text property is used to set or return the text on a button control.

Syntax

<asp:Button Text="string" runat="server" />

Attribute Description
text A string that specifies the text on the button control


Example

Example

The following example sets the text on a Button control:

<form runat="server">
<asp:Button id="button1" runat="server" Text="Submit" />
</form>

Show example »


Button Control Button Control

Color Picker

colorpicker