ASP.NET Target Property
Definition and Usage
The Target property is used to set or return the target of the HyperLink control.
Syntax
<asp:HyperLink NavigateUrl="URL" runat="server" />
Property | Description |
---|---|
target | Where to open the target URL. |
Example
The following example sets the Target property on the HyperLink control:
<form runat="server"> <asp:HyperLink id="link1" runat="server" Text="W3School" NavigateUrl="http://www.codew3c.com" Target="_blank" /> </form>
Example
- Set the Target Property for HyperLink Control