Latest web development tutorials

ASP.NET HyperLink controls

Web Server Controls Web server control

Definition and Usage

HyperLink control is used to create a hyperlink.


Attributes

属性 描述 .NET
ImageUrl 显示此链接的图像的 URL 1.0
NavigateUrl 该链接的目标 URL 1.0
runat 规定该控件是服务器控件。必须被设置为 "server"。 1.0
Target URL 的目标框架。 1.0
Text 显示该链接的文本。 1.0

Web Control Standard Properties

AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width

For a full description, visit the Web Control Standard Attributes .

Control Standard Properties

AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID, Visible

For a full description, go to Control Standard Attributes .


Examples

Hyperlink
In this example, we declare a HyperLink control in an .aspx file.


Web Server Controls Web server control