ASP.NET 2.0 BulletedList control is used to create a list of items formatted with bullets such as circular and rectangle bullets. This tutorial shows how to use BulletedList control.
The following code creates a BulletedList with quare bullet.
<
asp:BulletedList ID=BulletedList1 BulletStyle=Square runat=server><asp:ListItem>C# Corner</asp:ListItem>
<asp:ListItem>VB.NET Heaven</asp:ListItem>
<asp:ListItem>Longhorn Corner</asp:ListItem>
<asp:ListItem>.NET Heaven</asp:ListItem>
</asp:BulletedList>
The BulletStyle attribute represented by the BulleteStyle enumeration of BulletedList decides the type of the bullet. Figure 1 shows the BulleteStyle enumeration.
Figure 1. BulletStyle enumeration
Another important attribute of BulletedList is DisplayMode, which represents the display mode of the bulleted list. The DisplayMode is of type BulletedListDisplayMode enumeration listed in Figure 2. For example, if you want to create a bulleted list with hyperlinks, you need to set the DisplayMode to HyperLink.




Arockia NelsonPosted Feb 26, 2010, 4:16 AM
Makeing Super