ASP.NET Button TextProperty
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" />
| Property | Description |
|---|---|
| text | A string value that specifies the text on the Button control. |
Example
Example
The following example sets the text on the Button control:
<form runat="server">
<asp:Button id="button1" runat="server" Text="Submit" />
</form>
<asp:Button id="button1" runat="server" Text="Submit" />
</form>
Show example »
Button Control Other extensions