this is single line of code that can be used to get the number of items selected in checkboxlist in asp.net with c#
int count= ChbProperty.Items.Cast<ListItem>().Count(li => li.Selected);
Expression cannot contain lambda expressions
ReplyDelete