Standard Controls[2]->BulletedList

The BulletedList control is used to create a list of items 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.

List Bullet Styles

BulletedList controls can display list of items with a variety of bullet styles. To control the style of bullet used, use the BulletedList.BulletSyle property. The following example shows how to render a list of items with circular bullets.

C# BulletedList1.aspx
Run Sample View Source

List of Hyperlinks

The BulletedList control can also render a list of hyperlinks. The BulletedList control also provides a convenient way to render a list of hyperlinks, as an alternative to creating multiple individual HyperLink controls.

To render each item in the list as a hyperlink, set the BulletedList.DisplayMode property to BulletedListDisplayMode.HyperLink, and set the Value property of each list item to the navigation URL for the item. Lists of hyperlinks can also be displayed with a variety of bullet styles, as above.

C# BulletedList2.aspx
Run Sample View Source

posted on 2007-05-14 09:16  改变热爱  阅读(205)  评论(0)    收藏  举报

导航