Web Server Controls->ASP.NET HyperLink Control
Definition and Usage
The HyperLink control is used to create a hyperlink.
Properties
| Property | Description |
|---|---|
| id | A unique id for the control |
| ImageUrl | The URL of the image to display for the link |
| NavigateUrl | The target URL of the link |
| runat | Specifies that the control is a server control. Must be set to "server" |
| Target | Where to open the target URL.
|
| Text | The text to display for the link |
Examples
Hyperlink
ASPX Source:
| <html> <body> <form runat="server"> <asp:HyperLink ImageUrl="/banners/w6.gif" NavigateUrl="http://www.w3schools.com" Text="Visit W3Schools!" Target="_blank" runat="server" /> </form> </body> </html> |
![]() |
In this example we declare a HyperLink control in an .aspx file.

浙公网安备 33010602011771号