Click here to Skip to main content
15,791,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii all
i am using checkbox list is binded to no of items.

here my requirement is when user checked 20 items(select max items 20) in checkbox list after that user try to select 21st item the remaining unchecked items will be automatically enabled false(means unable to select)

here how to find the checked and unchecked items from checkbox list

please share any idea to me.
Updated 26-Mar-14 1:08am
nandakishoreroyal 26-Mar-14 5:55am    
your question is not fair, please re - post the question with correct explanation and code..

List<listitem> check = CheckBoxList1.Items.Cast<listitem>().Where(c => c.Selected).ToList();</listitem></listitem>

It will give you all the selected items value from the checkbox list.
Not sure how much this code will help you.

Good Luck.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900