The ASP.NET BulletedList control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
The ASP.NET Bulletedlist control is used to create an organised list of items to display to the user. The control renders as the HTML
organised list (OL) or unorganised list (UL). Each item within the BulletedList control is a listitem rendered as
HTML ListItem (LI).
Working examples.
|
|
- DELL
- HP Computers
- SONY
|
- DELL
- HP Computers
- SONY
|
- DELL
- HP Computers
- SONY
|
- DELL
- HP Computers
- SONY
|
Example code organised list.
<ol id="ctl00_ContentPlaceHolder1_BulletedList1" style="list-style-type:lower-alpha;"> <li>DELL</li><li>HP Computers</li><li>SONY</li> </ol>
Example code unorganised list.
<ul id="ctl00_ContentPlaceHolder1_BulletedList2"> <li>DELL</li><li>HP Computers</li><li>SONY</li> </ul>
Example code, adding style to an organised list.
<ol id="ctl00_ContentPlaceHolder1_BulletedList5" style="list-style-type:upper-roman;color:Red;font-weight:bold;"> <li>DELL</li><li>HP Computers</li><li>SONY</li> </ol>
|
|