title: Foreach loop in Aspx page how to add checkbox and label
body: <p>Foreach loop in Aspx page how to add checkbox and label values from datatable . Recieve all ticked checkbox value.</p>
  
  <p>I have written this code in aspx page not in aspx.cs .</p>
  
  <pre><code>&lt;% foreach (Employee myEmp in _empList)  {
         empName = myEmp.ToString();  %&gt;
  
  &lt;div class="abc"&gt;
      &lt;div class="pqr"&gt; 
              &lt;asp:Label Text="&lt;% empName %&gt;" runat="server"  ID="lblEmpName"&gt;&lt;/asp:Label&gt;&lt;/label&gt; 
        &lt;/div&gt;
      &lt;div class="xyz"&gt;
          &lt;asp:CheckBox ID="chkBox"  Checked="false" runat="server" /&gt;
      &lt;/div&gt;                      
  &lt;/div&gt;
  &lt;%  }   %&gt;
  </code></pre>