Partager via


How to: Add BulletedList Web Server Controls to a Web Forms Page

The BulletedList control can display static text in a list that is either unordered (bulleted) or ordered (numbered).

To add a BulletedList Web server control to a Web Forms page

  1. From the Standard tab of the Toolbox, drag a BulletedList control onto the page.

  2. In the Properties window, set the DisplayMode property to one of the following values to specify how the control displays list items:

    • Text   Items are displayed as plain text.

    • HyperLink   Items are displayed as hyperlinks.

    • LinkButton   Items are displayed as links that perform a postback.

  3. Add list items to the control in one of the following ways:

  4. In the Properties window, set the BulletStyle property to specify whether the control displays items as bullets or as numbers. To create a numbered, or ordered, list, set the property to one of the following enumeration values:

    To create a bulleted, or unordered, list, set the property to one of the following values:

    To display bullets as custom images, set the BulletStyle property to the URL of a graphic. The same graphic is displayed for each item.

See Also

Concepts

BulletedList Web Server Control Overview