ASP.NET Target property
Definition and usage
The Target property is used to get or set where to open the target URL.
Note: This property can only be used when the DisplayMode property is set to "HyperLink".
Syntax
<asp:BulletedList FirstBulletNumber="num" runat="server"> some content </asp:BulletedList>
Property | Description |
---|---|
target | Specify where to open the target URL. |
Example
The following example sets the Target of the BulletedList control:
<form runat="server"> <asp:Bulletedlist Target="HyperLink" id="bl1" runat="server"> <asp:ListItem Text="W3School" Target="_blank" Value="http://www.codew3c.com/" /> </asp:Bulletedlist> </form>
Example
- Set the target framework of the RadioButtonList link item