Please visit our sponsors !
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.
- _blank - the target URL will open in a new window
- _self - the target URL will open in the same frame as it was clicked
- _parent - the target URL will open in the parent frameset
- _top - the target URL will open in the full body of the window
|
Text |
The text to display for the link |
Example 1
In the following example we declare a HyperLink
control in an .aspx file:
<html>
<body>
<asp:HyperLink id="link1" ImageUrl="../banners/w6.gif"
NavigateUrl="http://www.w3schools.com" Text="Visit W3Schools!"
Target="_blank" runat="server"/>
</body>
</html>
|
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|