System.Web.UI.WebControls.BulletedList.DisplayMode Property

Gets or sets the display mode of the list content in a System.Web.UI.WebControls.BulletedList control.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.BulletedListDisplayMode.Text)]
public virtual BulletedListDisplayMode DisplayMode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the BulletedList.DisplayMode property to specify the display behavior to apply to the content of list items in a System.Web.UI.WebControls.BulletedList control. The BulletedList.DisplayMode property is set using one of the System.Web.UI.WebControls.BulletedListDisplayMode enumeration values. The following table lists the possible values.

BulletedListDisplayMode.Text

Text.

BulletedListDisplayMode.HyperLink

Hyperlinks.

BulletedListDisplayMode.LinkButton

Link buttons.

The BulletedListDisplayMode.HyperLink value allows you to display list 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 field allows you to display list content as links. Use the BulletedList.Click event to post back to the server when a link button is clicked.

The value of this property is stored in view state.

Requirements

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