worldatlas
MIS
I have a dropdown box for the users to select how many transaction entries they want to enter. Should I program as follow:
for i=1 to intRows Step 1
<table cellpadding="2" cellspacing="1" border="0">
<tr bgcolor="#eeeeee">
<td>
<asp:textbox Width = 50 ID = "AcctUnit" Runat="server">
</asp:textbox>
</td>
<td>
<asp:textbox Width = 50 ID = "AcctNum" Runat="server">
</asp:textbox></td>
<td>
<asp:textbox Width = 100 ID = "ActivityNum" Runat="server">
</asp:textbox>
</td>
<td>
<asp:textbox Width = 75 ID = "AcctCat" Runat="server">
</asp:textbox>
</td>
</table>
next
These are empty textbox that will require users to input data...But I want it to be dynamic so users can decide how many rows they can add.
Is there a better way to do this.
for i=1 to intRows Step 1
<table cellpadding="2" cellspacing="1" border="0">
<tr bgcolor="#eeeeee">
<td>
<asp:textbox Width = 50 ID = "AcctUnit" Runat="server">
</asp:textbox>
</td>
<td>
<asp:textbox Width = 50 ID = "AcctNum" Runat="server">
</asp:textbox></td>
<td>
<asp:textbox Width = 100 ID = "ActivityNum" Runat="server">
</asp:textbox>
</td>
<td>
<asp:textbox Width = 75 ID = "AcctCat" Runat="server">
</asp:textbox>
</td>
</table>
next
These are empty textbox that will require users to input data...But I want it to be dynamic so users can decide how many rows they can add.
Is there a better way to do this.