Search w3schools.com:

SHARE THIS PAGE

ASP.NET DisplayMode Property


BulletedList Control Reference Complete BulletedList Control Reference

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>

Attribute Description
mode Specifies the list item display mode.

Possible Values:

  • Text - Default. Standard Text
  • HyperLink - Hyperlink
  • LinkButton - Hyperlink Button


Example

The following example sets the DisplayMode of a BulletedList control:

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

Show example »

BulletedList Control Reference Complete BulletedList Control Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]