Quote:
<asp:CheckBox ID="checkbox2" OnCheckedChanged="CheckAll" runat="server" />
Your
CheckAll
method will never get fired because you haven't set
AutoPostback
to
True
for your
CheckBox
. Set AutoPostback to true so the
OnCheckedChanged
event will fire.
<asp:CheckBox ID="checkbox2" OnCheckedChanged="CheckAll" runat="server" AutoPostBack="True" />