如何动态地将ID提供给Textbox
in asp.net
like
<asp:TextBox ID='<% %>' runat="server"></asp:TextBox>
更新
<table border="1">
<%
for (int j = 0; j < dtTasks.Rows.Count; j++)
{%>
<%-- other code here --%>
<asp:TextBox ID='<% "txt" + j.tostring()%>' runat="server"></asp:TextBox>
<%-- other code here --%>
<% }%>
</table>