複数の を含む行 (TR>) を作成しています。以下のコードでは; 今月の日数について、以下の強調表示されたセクションでコントロールを複製する必要があります。コードの強調表示されたセクションを手動で 30 回または 31 回記述する代わりに、それを成し遂げるためのより良い方法はありますか?
enter code here
<tr id="Tr4" style="height:72px" runat="server">
<td valign="top" colspan="1" align="center" class="Employee" width="150" style="display:none">
<asp:Label ID="lblCounter" name="lblCounter" runat="server" Text='<%# Container.DataItemIndex + 1 %>'/>
<td valign="top" colspan="1" align="center" class="Employee" width="150" style="display:none">
<asp:Label ID="lblRecordID" name="lblRecordID" runat="server" Text='<%#Eval("RecordID") %>'/>
</td>
</td>
<td valign="top" colspan="1" align="center" class="Employee" width="150" style="display:none">
<asp:Label ID="lblEmployeeID" name="lblEmployeeID" runat="server" Text='<%#Eval("EmployeeID") %>'/>
</td>
<td valign="top" colspan="1" align="center" class="Employee" width="150">
<asp:Label ID="lblEMployeeName" runat="server" Text='<%#Eval("EmployeeName")%>' />
</td>
' Columns="1" style="text-align:right"/>
<asp:Label ID="lblHoursWorked2" runat="server" Text='HoursWorked' />
<asp:TextBox ID="txtHoursWorked2" runat="server" AutoPostBack="true"
Text='' Columns="1" style="text-align:right"/>
<br />
<asp:Label ID="lblOTMealsPaid" runat="server" Text='Meals Paid'/>
<asp:TextBox ID="txtOTMealsPaid2" runat="server" AutoPostBack="true" Enabled="false"
Text='<%#Eval("OTMealsPaid") %>' Columns="1" style="text-align:right"/>
<br />
</td>
</tr>
</ItemTemplate>