how to add control to the page?
<p>Controls must be added to a page like this.</p>

<pre><code>&lt;div&gt;
&lt;% 
for(int i=0; i&lt;10; i++)
{
   Label lab=new Label();
   lab.Text="Text"+i;
   Response.Write(lab);
}
%&gt;
&lt;/div&gt;
</code></pre>

<p><strong>OR</strong></p>

<pre><code>&lt;div&gt;
&lt;% for(int i=0; i&lt;10; i++)
{
    Response.Write("&lt;asp:Label runat='server' Text='Text' /&gt;");
}
%&gt;
&lt;/div&gt;
</code></pre>

<p><strong>How to do it?</strong></p>
