ASP.NET Target Property
Complete HyperLink Control Reference
Definition and Usage
The Target property is used to set or return the target of a HyperLink control.
Syntax
<asp:HyperLink Target="target" runat="server" />
Attribute |
Description |
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
|
Example
The following example sets the Target on a HyperLink control:
<form runat="server">
<asp:HyperLink id="link1" runat="server" Text="W3Schools"
NavigateUrl="http://www.w3schools.com" Target="_blank" />
</form>
Show example »
Complete HyperLink Control Reference
Color Picker