How to create ASP.Net Control In .aspx file dynamicly?
<p>I have to create  a  series of controls(Hyperlink and Label) in .aspx file.The most important thing is that I have to control the ID of the generated control.</p>

<p>I write some code in my .aspx file like this:</p>

<pre><code>&lt;%for (int i =1; i &lt;= 5; i++){%&gt;
      &lt;asp:HyperLink ID="&lt;%#GetContorlName("HyperLink",i,1)%&gt;" CssClass="c083e01" runat="server"&gt;HyperLink&lt;/asp:HyperLink&gt;
 &lt;%} %&gt;
</code></pre>

<p>GetContorlName() is a function defined in codebehind file which return a string represent ID.</p>

<p>However,This doesn't work,It cannot compile.</p>

<p>Who can help me to fulfill this task?Please Remember I have to dynamically create controls in .aspx file,not in .cs file.</p>

<p>Any help will be appreciated!</p>
