title: Checkbox server/client events
body: <p>I have a checkbox in repeater control. 
  on changing it's bit value, it should prompt the alert message like do u wish to delete?
  and if yes is selected, the onselectedchange server event should be fired.</p>
  
  <p>Right now. on clicking the checkbox i am using onclick event to fire the prompt but it is not able to fire the server event. </p>
  
  <p>here is my code</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
  
  function CheckedChange() {
           if (confirm('Are you sure you want to delete?'))
               return true;
           else
               return false;
       }
  &lt;/script&gt;
  
  &lt;asp:Repeater ID="repQuestion" runat="server"  onitemcommand="repQuestion_ItemCommand"                                                    onitemdatabound="repQuestion_ItemDataBound"&gt;
  
  &lt;ItemTemplate&gt;
  &lt;table  width="100%" cellspacing="0" cellpadding="0"&gt;
  &lt;tr&gt;
  &lt;td&gt;
  &lt;asp:CheckBox onclick="return CheckedChange();" ID="delete" runat="server" Checked='&lt;%#DataBinder.Eval(Container.DataItem, "IsDeleted")%&gt;' OnCheckedChanged="chkdelete_Click" /&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>