ASP.NET HyperLink Control
Definition and Usage
HyperLink control is used to create hyperlinks.
Properties
Properties | Description | .NET |
---|---|---|
ImageUrl | The URL of the image displayed by this link | 1.0 |
NavigateUrl | The target URL of the link | 1.0 |
runat | Specifies that the control is a server control. It must be set to "server". | 1.0 |
Target | The target frame of the URL. | 1.0 |
Text | Displays the text of the link. | 1.0 |
Web Control Standard Attributes
AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled SkinID, Style, TabIndex, ToolTip, Width
For a complete description, please visit Web Control Standard Attributes.
Control Standard Attributes
AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site TemplateControl, TemplateSourceDirectory, UniqueID, Visible
For a complete description, please visitControl Standard Attributes.
Example
- Hyperlink
- In this example, we declare a HyperLink control in the .aspx file.