c# - how to get selected item in CheckBoxList in Asp.net -



c# - how to get selected item in CheckBoxList in Asp.net -

i have checkboxlist in page.is there way selected item values using linq?

what best way selected item values in checkboxlist?

you go taking items of checkbox list , converting them listitems , collection fetch selected, this:

var selecteditems = yourcheckboxlist.items.cast<listitem>().where(x => x.selected);

c# asp.net linq

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -