更新时间:2023-10-06 21:40:46
您应该执行以下操作:
You should do the following:
CheckBox的每个实例设置 ID
您在 foreach
循环中创建。 CheckedChanged
事件处理程序附加在页面生命周期的某个时候,控制事件发生之前ID
property for each instance of CheckBox
you create in your foreach
loop.CheckedChanged
event handler is attached at some point of the page life-cycle before control events are raised