Search code examples
c#asp.netcheckboxupdatepanel

C# ASP.NET CheckBox in UpdatePanel does not register click when clicked "during" update


Everything works as it should. I just find it annyoing that if you manage to click the checkbox "during" the update of the updatepanel it does not grab the click. Is there som workaround/fix for this or do I simply have to rethink my design and put the checkboxes in a different panel?


Solution

  • If you use AutoPostBack="True", checkbox will be working fine. Thanks

    <asp:UpdatePanel ID="updatepanel" runat="server">
    <ContentTemplate>
    <asp:Checkbox ID="chk" runat="server" AutoPostBack="true"></asp:CheckBox>
    </ContentTemplate>
    </asp:UpdatePanel>