How to Add Item in BulletedList Control Programmatically in vs2010

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)


2.ToolBox-> Double Click on BulletedList(or drag and drop BulletedList on Design view)-> Right click BulletedList->Select Properties-> Click Events(Horizontal arrow on image)-> double click on Init Event
(Vertical arrow on image) to get the code behind
Programmatically add list item in BulletedList



















3. Write this code to your code Behind

4.click F5->Ok
BulletedList control Event



No comments:

Post a Comment