Posted on: 8/7/2014 2:27:20 AM | Views : 492

Dear All,
I would like to use following coding to build a table that has dynamic ID:
<% int recordCount = 0; foreach (System.Data.DataRow dr in getName().Rows) { recordCount++; %> <tr> <td width="10%" style="font-weight:bold;font-size:12px;"><%= string.Format("User {0}:", recordCount) %></td> <td width="80%"><asp:TextBox runat="server" ID="<%= Eval(string.Format("txtUser {0}:", recordCount)); %>" Text='<%= dr["username"].ToString().Trim() %>'></asp:TextBox></td> </tr> <% } %> However, it always treat 
< ...

Go to the complete details ...