I expected this to be pretty simple, but I can't find / figure out a simple / smart solution.
I have a CheckBoxList and it has an OnSelectedIndexChanged event. If the user selects (checks) an element in the field, then the event, if it is triggered, and the code is behind. Plain.
Now, if the user unchecks the box, I need to do some work in the background, but the problem is that when the user then deselects an item in the list, it fires an event, but in the benind code the event does not store a pointer to which element the user simply not selected. I find it strange and think that I should miss something obvious, although various searches have yielded nothing concrete.
I think I could save the list in the code behind the checked elements, and each time the event is fired, it turns out that it was deleted, but this seems unnecessary if there is a simpler solution.
Thanks Michael
source
share