Hi,
I am using ASP .NET 4.
I have a check list box, and bind it by Database table.
when i Checked an item from Webpage and debug it, It didn't return the selected/Checked items.
Every Checkbox in ChecklistBox control is Unchecked or Selected = False.

im using the following code to check the Selected Items in ChecklistBox

foreach (ListItem li in checkListBox1.Items)
        {
               if (li.Selected)
              {
                 //Action to Perform if it is Selected 
               }
        }

Please Help to solve this Issue.,.. Thanx.

thanx everyone... I got the Solution...
Actually I was not using

if (!IsPostBack)
            { }

while binding the controls.
So it is Solved. Thanx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.