Public Function GetSelectedItems(ByVal checkBoxList As ListControl) As IEnumerable(Of ListItem) Return From li As ListItem In checkBoxList.Items Where li.Selected End Function. EDIT 2: Royi Namir: The problem is not the tag because when I remove the second item the view source shows up without the tag but still in 2.pCheck label display: inline-block margin-left: 5pxSet this attribute to your CheckBoxList : :< input type"checkbox" item.chkd name"CheckedCertificates" value"item.Certid"> CheckBoxList remove all items programmatically. Asp.net list web server control checkboxlist provides a multi selection checkbox group. checkboxlist ListItem objects contains in a Items collection. we can add or remove items from checkboxlist using adding or removing items from this Items You can use two types of ASP.NET controls to add a check box to a Web Forms page: a separate CheckBox control or a CheckBoxList control.3.
Set an item to be checked for status. . Get the selected Item List From CheckBoxList Items and show Selected Items List with Help of Label . protected void Button1Click(object sender, EventArgs e).