Latest web development tutorials

ASP.NET BulletedList Target property

BulletedList control BulletedList control

Definition and Usage

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

grammar

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

属性 描述
target 规定在何处打开目标 URL。

可能的值:

  • _blank - 在新窗口中打开目标 URL
  • _self - 在被点击的同一框架中打开目标 URL
  • _search - 在搜索窗格中打开目标 URL
  • _top - 在整个窗口主体中打开目标 URL
  • _parent - 在父框架集中打开目标 URL
  • framename - 规定目标框架名称


Tips and Notes

Note: When DisplayMode property is set to "HyperLink" when, in order to use this property.


Examples

The following example sets the Target BulletedList control:

<form runat="server">
<asp:Bulletedlist Target="HyperLink"
id="bl1" runat="server">
??<asp:ListItem Text="W3CSchool" Target="_blank"
??Value="http://www.w3cschool.cc/" />
</asp:Bulletedlist>
</form>

The demonstration >>

BulletedList control BulletedList control