How to get the Id that is checked in asp.net c#
<pre><code>&lt;asp:CheckBox runat="server" CssClass=" checkbox-tab"  ID="chbcountry" /&gt;&lt;%#(Eval("Description")) %&gt;
</code></pre>

<p>and I am binding data from the database</p>

<pre><code> rspCountry.DataSource = countries;
 rspCountry.DataBind();
</code></pre>

<p>The check box is present in repeater control.How do I get the id of the country </p>

<p>Edit : Added code by the OP</p>

<pre><code>&lt;asp:Repeater runat="server" ID="rspCountry"&gt; 
    &lt;ItemTemplate &gt; 
        &lt;asp:Label runat="server" ID="lblCountry" CssClass=" checkbox-desc" &gt; 
        &lt;asp:CheckBox runat="server" CssClass=" checkbox-tab" ID="chbcountry" /&gt;
          &lt;%#(Eval("Description")) %&gt;
        &lt;/asp:Label&gt;
        &lt;br/&gt;
    &lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>
