Skip to main content

Posts

Showing posts with the label bulletedlist

How to add an item to BulletedList programmatically

Add an item to BulletedList programmatically BulletedList is an ASP.NET list web server control. ASP.NET developers use BulletedList server control to create a list of items that are formatted with bullets. The BulletedList Items property gets the collection of items in the BulletedList control. Items collection contains all ListItem objects. A ListItem object represents a single item in BulletedList control. ListItem object has three properties that are Text, Value, and Selected. Text property text is displayed in BulletedList control and Value property text is associated with ListItem and is hidden in the browser. The Selected property indicates whether ListItem is selected or not. We can add ListItem objects of BulletedList server control at design time. We also can populate BulletedList by data binding with data source control. Even we can add items to BulletedList control programmatically at run time. To add an item programmaticall...