Use the BulletedList control to create a list of items that are formatted with bullets. To specify the individual list items that you want to appear in a BulletedList control, place a ListItem object for each entry between the opening and closing tags of the BulletedList control.

To specify the bullet type to use to display list items in a BulletedList control, set the BulletStyle property to one of the bullet types that are defined by the BulletStyle enumeration. The following table lists the available bullet styles.

When a hyperlink is clicked, it navigates to a URL. Use the Value property to specify the URL that a hyperlink navigates to. Use the Target property to specify the frame or window that displays the Web page that is navigated to when a hyperlink is clicked.

When the DisplayMode property is set to LinkButton, the BulletedList control displays list items as links that post back to the server when clicked. To programmatically control the actions that are performed when a link button is clicked, provide an event handler for the Click event. Note that the SelectedIndex and SelectedItem properties are inherited from the ListControl class and are not applicable to the BulletedList control. Use the event data of the BulletedListEventArgs class to determine the index of the link button in a BulletedList that was clicked.

The BulletedList control also supports data binding. To bind the BulletedList to a data source, you can use any of the provided data-binding mechanisms. For more information, see Binding to Databases.

Accessibility

The markup rendered by default for this control might not conform to accessibility standards such as the Web Content Accessibility Guidelines 1.0 (WCAG) priority 1 guidelines. For details about accessibility support for this control, see ASP.NET Controls and Accessibility.

This section contains two code examples. The first code example demonstrates how to create a BulletedList control with list items that are formatted as link buttons. The second code example demonstrates how to create a BulletedList control using data binding to specify the list items.

The following code example demonstrates how to create a BulletedList control with list items that are formatted as link buttons. Text is displayed in a Label control when a list item is clicked.

No code example is currently available or this language may not be supported.

The following code example demonstrates how to create a BulletedList control using data binding to specify the list items. The list items are formatted as link buttons. Text is displayed in a Label control when a list item is clicked.