ASP.NET HyperLink Text property
Definition and Usage
Text property sets or returns the text HyperLink control.
grammar
<asp:HyperLink Text="string" runat="server" />
属性 | 描述 |
---|---|
string | 字符串值,规定 HyperLink 控件上的文本。 |
Examples
The following examples are provided in the HyperLink control text:
<form runat="server">
<asp:HyperLink id="link1" runat="server" Text="W3CSchool"
NavigateUrl="http://www.w3cschool.cc" />
</form>
<asp:HyperLink id="link1" runat="server" Text="W3CSchool"
NavigateUrl="http://www.w3cschool.cc" />
</form>
The demonstration >>
HyperLink controls