title: Accessing checkbox inside a html table loop, from code behind (.NET)
body: <p>Hey guys,
  I have a question about asp.net</p>
  
  <p>I have this table with checkbox for each row:</p>
  
  <p><a href="http://i.stack.imgur.com/9QBLf.png" rel="nofollow">http://i.stack.imgur.com/9QBLf.png</a></p>
  
  <p>table code inside the ASPX page:</p>
  
  <p><a href="http://i.stack.imgur.com/dLbP1.png" rel="nofollow">http://i.stack.imgur.com/dLbP1.png</a></p>
  
  <p>So I'm trying to implement the delete selected button.. 
  How exactly do i point to the specific checkbox for a particular row from codebehind when all 3 have the same name chkSelected?
  I know how to do it with a gridview, but not quite sure how if we do it with a for loop..</p>
  
  <p>Can I do something like this inside btnDelete_Click?</p>
  
  <pre><code>    foreach (Control control in Controls)
      {
          try
          {
              CheckBox chkCurrent = (CheckBox)control;
              if (chkCurrent.Checked)
              {
                  Partners partner = new Partners(chkCurrent.ID); &lt;- reference id here
                  partner.Delete();
              }
          }
          catch { }
      }
  </code></pre>
  
  <p>Thank you in advance!</p>