locked
Checkbox RRS feed

  • Question

  • User-1499457942 posted

    Hi

      I have below code but it is not going in OnCheckedChanged

    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" OnCheckedChanged="OnCheckedChanged" />

    Thanks

    Wednesday, November 28, 2018 11:01 AM

All replies

  • User-2054057000 posted

    Check if your checkbox is not inside UpdatePanel.

    Try creating a new page and copy paste the checkbox and asee if autopostback is working in your new page. If is is working then it might be some javascript problem.

    Wednesday, November 28, 2018 11:40 AM
  • User-1499457942 posted

    Hi

      It is not inside Update Panel

    Thanks

    Wednesday, November 28, 2018 12:13 PM
  • User61956409 posted

    Hi JagjitSingh,

    Please use F12 developer tools to check if your asp:CheckBox control CheckBox1 is rendered like below.

    Besides, as yogyogi mentioned, to troubleshoot the issue, you can try to create a new web page and test same code of asp:CheckBox control CheckBox1 and check if it works as expected. And please check if using event.preventDefault() method (or other script) stops the default action.

    With Regards,

    Fei Han

    Thursday, November 29, 2018 3:18 AM