I have a CheckBoxList and 5 labels.
I would like the text value of these Labels to be set to the 5 selections made from the CheckBoxList after the user clicks on a button. How would I get this accomplished?
Thanks in advance.
I have a CheckBoxList and 5 labels.
I would like the text value of these Labels to be set to the 5 selections made from the CheckBoxList after the user clicks on a button. How would I get this accomplished?
Thanks in advance.
Why don't you have one label and on the button click do something like:
That may not be the exact syntax but something along those lines.
find selected items from CheckboxList by Lambda Linq:
Items
property of theCheckBoxList
selected
property of thelistitem
like:
to add a value you could do:
or display al values in a mini-report:
Use this in LINQ: