Friday, July 27, 2012

Get count of checkboxlist selected items

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);

1 comment:

  1. Expression cannot contain lambda expressions

    ReplyDelete

ASP.NET Core

 Certainly! Here are 10 advanced .NET Core interview questions covering various topics: 1. **ASP.NET Core Middleware Pipeline**: Explain the...