.net 3.5 - How to set multiple selected values in asp.net checkboxlist -


I have an asp.net checkbox list that is limited from a linq to a SQL dataite and when I click on my checkbox Calculating the item page load event this is 0. I want to be able to set selected items here on my checkbox but can not

Selected event of the data source after the data is loaded If this is the case, how can I set selected items in my list?

If I have set the value of the value to a value, then it shows only the last value, instead of all selected values. How can I choose multiple values ​​in my checkbox in the pageload event?

I know this is an old post but I had only one problem recently.

To select several items of a databound checkbox list, manage the databown event and it is necessary to set the loop as separate items on each item selected by the collection of items.

The property of the selected value set only checks for the last item.

  foreach (ListItem item in MyCheckBoxList.Items) {item.Selected = ShouldItemBeSelectedMethod (item.Value); }  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -