title: checkboxes in repeater
body: <p>I have a repeater and an unbound checkbox in each item.
  I want to do something for items that are checked.
  but the problem is here!
  when I click on my button outside the repeater, just my page refreshes and nothing happens.</p>
  
  <h2>these are my code :</h2>
  
  <pre><code>&lt;asp:Repeater ID="Repeater1" runat="server" &gt;    
             &lt;ItemTemplate&gt;
                 &lt;asp:CheckBox ID="ChBox" runat="server" /&gt;
                 &lt;asp:Label ID="rptBody" runat="server" Text='&lt;%#Eval("subject") %&gt;
                 &lt;hr /&gt;
             &lt;/ItemTemplate&gt;
      &lt;/asp:Repeater&gt;
      &lt;asp:Button ID="btnDelete" runat="server" Text="Delete" Width="90px"     onclick="btnDelete_Click" /&gt;
  </code></pre>
  
  <p>code in cs file :</p>
  
  <pre><code>  protected void btnDelete_Click(object sender, EventArgs e)
          {
               foreach (RepeaterItem item in Repeater1.Items)
              {
                  CheckBox ch = item.FindControl("ChBox") as CheckBox;
                 if (ch.Checked)
                  {
                     ch.Text = "IT is selected now";
                  }
              }
          }
  </code></pre>