我正在创建一个包含多个 . 在下面的代码中;我需要在下面突出显示的部分中复制当月天数的控件。而不是手动编写代码的突出显示部分 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>