The Hyperlink control creates links on the page that users can click to go to another page or bookmark.
Required properties are noted in boldface type.
<asp:Hyperlink id="Hyperlink1" runat="server" NavigateUrl="url" Text="HyperlinkText" ImageUrl="url" Target="window" /> or <asp:Hyperlink id="Hyperlink1" runat="server" NavigateUrl="url" ImageUrl="url" Target="window" /> Text </asp:Hyperlink>
Note Because the <asp:Hyperlink> element has no content, you can close it with />.
Property | Description |
---|---|
(Base control properties) | The properties defined in Base Web Control Properties. |
ImageUrl | The URL of an image that is an alternative to Text. (ImageURL takes precedence.) If specified, an image is rendered that users click to navigate.
Note You can create a button (rather than a hyperlink) with an image using the ImageButton control. |
NavigateUrl | The URL of the page or bookmark to navigate to. |
Target | The target window in which the hyperlink will display the page. This can be the name of a window or a frame reference such as _TOP. |
Text | The hyperlink text. |
To be supplied.
See Also