How to Add Items in CheckBoxList 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 CheckBoxList(or drag drop CheckBoxList to Design Window)-> click Arrow sign->Click Edit items->
CheckboxList Control
CheckBoxList

















3.Click Add(to add new item)->Change Text to your desired item name(if you select Selected to true then it will always remain selected)-> Ok
Add Item to CheckBoxList


































4.To Run your Project Click F5->Ok
Our Final CheckBoxList With Added Item
Our Final CheckBoxList With Added Item

No comments:

Post a Comment