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 Specifies 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 Frame of RadioButtonList Link Items