System.Web.UI.WebControls.BulletedListDisplayMode Enumeration

Specifies the display behaviors that you can apply to the list item contents in a System.Web.UI.WebControls.BulletedList control.

Syntax

public enum BulletedListDisplayMode

Remarks

The System.Web.UI.WebControls.BulletedListDisplayMode enumeration represents the display behaviors that you can apply to the content of the list items in a System.Web.UI.WebControls.BulletedList control. The BulletedList.DisplayMode property uses these enumeration values to set the display behavior of the list item content in a System.Web.UI.WebControls.BulletedList control. For example, if you set the BulletedList.DisplayMode property to the BulletedListDisplayMode.HyperLink value, the content of each list item in the System.Web.UI.WebControls.BulletedList control renders as a hyperlink.

The BulletedListDisplayMode.Text value allows you to display the list item content as regular text with no additional functionality.

The BulletedListDisplayMode.HyperLink value allows you to display list item content as hyperlinks. When clicked, a hyperlink navigates to a URL. Use the ListItem.Value property to specify the URL that a hyperlink navigates to.

The BulletedListDisplayMode.LinkButton value allows you to display list item content as link buttons. Use the BulletedList.Click event to post back to the server when the user clicks a link button. Use the event data of the System.Web.UI.WebControls.BulletedListEventArgs class to determine the index of the link button in a System.Web.UI.WebControls.BulletedList that the user clicked.

Members

Member NameDescription

Displays the list item content as hyperlinks.

LinkButton

Displays the list item content as link buttons.

Text

Displays the list item content as text.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0