Click here to Skip to main content
15,912,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I check the checkbox, the code is not reaching the event handler. I verified this by giving
a break point. Hereunder is my code:

XML
<asp:CheckBox ID="GuestChkBox" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" style=" margin-top:78px;margin-left:600px; font-size:larger"
 ></asp:CheckBox>


C#
protected void CheckBox1_CheckedChanged(Object sender, EventArgs e)
    {
    }
Posted

Try to set AutoPostBack="true" for CheckBox.
 
Share this answer
 
make sure the AutoPostBack is True
 
Share this answer
 
try this thing

XML
<asp:CheckBox ID="GuestChkBox"  AutoPostBack="True"  runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" style=" margin-top:78px;margin-left:600px; font-size:larger"
 ></asp:CheckBox>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900