此行已从表中移除并且没有任何数据。BeginEdit() 将允许在此行中创建新数据
<asp:Repeater ID="rpt_zu" Runat="server"> <ItemTemplate> <li> <h2><%# databinder.eval(container,"dataitem.zustr") %></h2> <div style="display:none"><%# databinder.eval(container,"dataitem.Zu_ID") %></div> <div class="content"> <asp:DataList ID="dlst_emp" Runat="server" RepeatColumns="3"> <ItemTemplate> <table height="36" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="112" height="28" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffcc"> <tr> <td width="63"><a href="#"><%# databinder.eval(container,"DataItem.Employ_Name")%></a></td> <td width="43"> <asp:LinkButton Runat="server" ID="btn_fl"> 发料</asp:LinkButton></td> </tr> </table> </td> </tr> </table> </ItemTemplate> </asp:DataList> </div> </li> </ItemTemplate> <AlternatingItemTemplate> <li> <h2><%# databinder.eval(container,"dataitem.zustr") %></h2> <div style="display:none"><%# databinder.eval(container,"dataitem.Zu_ID") %></div> <div class="content"> <asp:DataList ID="Datalist1" Runat="server" RepeatColumns="3"> <ItemTemplate> <table height="36" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="112" height="28" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffcc"> <tr> <td width="63"><a href="#"><%# databinder.eval(container,"DataItem.Employ_Name")%></a></td> <td width="43"> <asp:LinkButton Runat="server" ID="Linkbutton1"> 发料</asp:LinkButton></td> </tr> </table> </td> </tr> </table> </ItemTemplate> </asp:DataList> </div> </li> </AlternatingItemTemplate> </asp:Repeater>