ASP.NET BulletedList DisplayModeProperties


BulletedList 控件BulletedList Control

Definition and Usage

The DisplayMode property is used to get or set the type of list displayed.

Syntax

<asp:BulletedList DisplayMode="mode" runat="server">
Some Content
</asp:BulletedList>

Property Description
mode Specifies the display mode of the list items.

Possible values:

  • Text - Default. Standard text
  • HyperLink - Hyperlink
  • LinkButton - Link button


Example

The following example sets the DisplayMode of the BulletedList control:

<form runat="server">
<asp:Bulletedlist DisplayMode="HyperLink"
id="bl1" runat="server">
??<asp:ListItem Text="EXAMPLE"
??Value="http://www.example.com/" />
</asp:Bulletedlist>
</form>

Live Demo »

BulletedList 控件BulletedList Control Other Extensions