ASP.NET Text Property
Definition and Usage
The Text property is used to set or return the text on the LinkButton control.
Note:The appearance of this space is similar to the HyperLink space, but its function is the same as the Button space.
Syntax
<asp:LinkButton Text="string" runat="server" />
Property | Description |
---|---|
string | String value. Specifies the text on the LinkButton control. |
Example
The following example sets the text on the LinkButton space:
<form runat="server"> <asp:LinkButton id="lbt1" runat="server"> Text="Submit" /> </form>
Example
- Set Text for LinkButton Space