title: how to dynamically give id to the textbox
body: <p>How to give ID dynamically to the <code>Textbox</code> in <code>asp.net</code> like</p>
  
  <pre><code>&lt;asp:TextBox ID='&lt;% %&gt;' runat="server"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <pre><code>&lt;table border="1"&gt;
  &lt;% 
      for (int j = 0; j &lt; dtTasks.Rows.Count; j++)
          {%&gt;
              &lt;%-- other code here --%&gt;
              &lt;asp:TextBox ID='&lt;% "txt" + j.tostring()%&gt;' runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;%-- other code here --%&gt;
          &lt;% }%&gt;
  &lt;/table&gt;
  </code></pre>