How to add multiple textbox controls using a loop and change ID
<pre><code>&lt;%
 for(int i = 0 ; i &lt; 10 ; i++) {
%&gt;
&lt;asp:CheckBox ID="CheckBox&lt;%=i %&gt;" runat="server" /&gt;
&lt;%
  }
%&gt;
</code></pre>

<p>But this code is not working
How can I add multiple controls using loops by this method?</p>
