OnCheckedChanged event not firing

前端 未结 2 507
面向向阳花
面向向阳花 2021-01-03 19:03

I have a GridView with a column of checkboxes (the rest of the GridView is being populated from a database). I\'m using AJAX to perform different functions, and I\'m wonderi

相关标签:
2条回答
  • 2021-01-03 19:40

    Please try to check the value with the DB:

    Checked='<%# Convert.ToBoolean(Eval("Processed")) %>'

    0 讨论(0)
  • 2021-01-03 19:51

    Try turning AutoPostBack on for the checkbox control.

    <asp:CheckBox ID="CheckBoxProcess" runat="server" Enabled="true" OnCheckedChanged = "CheckBoxProcess_OnCheckedChanged" AutoPostBack="true" />
    

    This maybe the reason your method isn't being called.

    0 讨论(0)
提交回复
热议问题