ASP.NET CheckBox does not fire CheckedChanged event when unchecking

前端 未结 9 709
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 10:04

I have a CheckBox on an ASP.NET Content Form like so:



        
9条回答
  •  [愿得一人]
    2020-12-08 10:55

    The super easy answer is to set the ViewState on for that one control.

    Just add the EnableViewState="true" to the AutoPostBack="true" property in the checkbox tag.

提交回复
热议问题