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

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

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