Web Server Controls->ASP.NET HyperLink Control
2007-03-27 09:15
507 查看
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 |
Examples
HyperlinkASPX 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.
相关文章推荐
- Web Server Controls->ASP.NET Panel Control
- Web Server Controls->ASP.NET Table Control
- Web server Controls->ASP.NET TextBox Control
- Web Server Controls->ASP.NET Button Control
- Web Server Controls->ASP.NET Image Control
- Web Server Controls->ASP.NET PlaceHolder Control
- Web Server Controls->ASP.NET ImageButton Control
- Web Server Controls->ASP.NET Label Control
- Web Server Controls->ASP.NET RadioButton Control
- Web Server Controls->ASP.NET CheckBox Control
- Web Server Controls->ASP.NET LinkButton Control
- Web Server Controls->ASP.NET RadioButtonList Control
- Web Server Controls->ASP.NET ListBox Control
- Web Server Controls->ASP.NET TableCell Control
- Web Server Controls->ASP.NET XML Control
- Web Server Controls->ASP.NET Literal Control
- Web Server Controls->ASP.NET TableRow Control
- Web Server Controls->ASP.NET AdRotator Control
- Web Server Controls->ASP.NET DropDownList Control
- ASP.NET AJAX Roadmap--Server Controls (11): Timer Control Overview