ASP.NET HyperLink TextProperty
HyperLink Control
Definition and Usage
The Text property is used to set or return the text of the HyperLink control.
Syntax
<asp:HyperLink Text="string" runat="server" />
| Property | Description |
|---|---|
| string | String value that specifies the text on the HyperLink control. |
Example
The following example sets the text on the HyperLink control:
<form runat="server">
<asp:HyperLink id="link1" runat="server" Text="EXAMPLE"
NavigateUrl="http://www.example.com" />
</form>
<asp:HyperLink id="link1" runat="server" Text="EXAMPLE"
NavigateUrl="http://www.example.com" />
</form>
Demo Example »
HyperLink Control Other Extensions