ASP.NET BulletedList TargetProperties


BulletedList 控件BulletedList Control

Definition and Usage

The Target property is used to get or set where to open the target URL.

Syntax

<asp:BulletedList Target="target" runat="server">
Some Content
</asp:BulletedList>

Property Description
target Specifies where to open the target URL.

Possible values:

  • _blank - Opens the target URL in a new window
  • _self - Opens the target URL in the same frame that was clicked
  • _search - Opens the target URL in the search pane
  • _top - Opens the target URL in the full window body
  • _parent - Opens the target URL in the parent frameset
  • framename - Specifies the name of the target frame


Tips and Notes

Note:This property can only be used when the DisplayMode property is set to "HyperLink".


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="EXAMPLE" Target="_blank"
Value="http://www.example.com/" />
</asp:Bulletedlist>
</form>

Show example »

BulletedList 控件BulletedList Control Other Extensions