BulletList Server Control

BulletList Server Control

The BulletedList server control is used to display a bulleted list of items in an ordered (using the HTML <ol> element) or unordered (using the HTML <ul> element)way.

The BulletStyle attribute changes the style of the bullet that introduce each line of the list. It has possible values of Numbered, LowerAlpha, UpperAlpha, LowerRoman, UpperRoman, Disc, Circle, Square, NotSet, and CustomImage.

You can change these properties by selecting the BulletList Control, which in turn open a Property window where you can select the BulletStyle Attribute and change the bullet look according to your Requirement.

Code for BulletList Server Control:

<asp:BulletedList ID=”Bulletedlist1″ runat=”server”>
<asp:ListItem>C</asp:ListItem>
<asp:ListItem>C++</asp:ListItem>
<asp:ListItem>Word 2013</asp:ListItem>
<asp:ListItem>Excel 2013</asp:ListItem>
<asp:ListItem>PowerPoint 2013</asp:ListItem>
<asp:ListItem>Computer Fundamentals</asp:ListItem>
</asp:BulletedList> Example: A simple use of BulletList Server Control