ASP.NET Text Property

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, specifies the text on the hyperlink control.

Example

The following example sets text on the hyperlink control:

<form runat="server">
<asp:HyperLink id="link1" runat="server" Text="W3School" 
NavigateUrl="http://www.codew3c.com" />
</form>

Example

Set Text for Hyperlink Control