xiaoxiaotuotuodada
noeternal
2019-04-02 16:51

同一form下,弹出框会影响Repeater数据的显示吗?

  • c#
  • asp.net

前台代码:

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table cellpadding="0" cellspacing="0" width="100%" border="0" style="margin: 10px 0;">
              <tr>
                        <th> 姓名Name</th>
                        <th>性别Gender</th>
                        <th>年龄Age</th>
                        <th>删除Delete</th>
              </tr>
<asp:Repeater ID="RepeaterList" runat="server" OnItemCommand="RpProduct_ItemCommand">
       <ItemTemplate>
           <tr>
             <td >
                       <asp:TextBox ID="Name"   runat="server" class="atext" Text='<%# Eval("Name")%>'></asp:TextBox>
             </td>
             <td>
                      <asp:TextBox ID="Gender" runat="server" class="atext"  Text='<%# Eval("Gender")%>'></asp:TextBox>
                </td>
               <td>
                       <asp:TextBox ID="Age"  runat="server" class="atext" Text='<%# Eval("Age")%>'></asp:TextBox>
                </td>
                <td>
                 <span>
                        asp:LinkButton ID="lbDel" CommandName="btndel" runat="server" OnClientClick="return confirm( '确定要删除吗(Are you sure delete it)? ');">Del</asp:LinkButton></span>
                </td>
           </tr>
          </ItemTemplate>
</asp:Repeater>
</table>
</ContentTemplate>
 </asp:UpdatePanel>
<div class="fb fb_1" style="width: 680px;">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                            <table cellpadding="0" cellspacing="0" border="0" width="97%" style="margin-bottom: 5px;">
                                <tr>
                                    <th>
                                        <input type="checkbox" value="" name="THECHECKAll" onclick="SelectAll();" />
                                    </th>
                                    <th>
                                        姓名Name
                                    </th>
                                    <th>
                                        性别Gender
                                    </th>
                                    <th>
                                        年龄Age
                                    </th>
                                </tr>
                                <asp:Repeater ID="RepeaterInfo" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <input id="<%#Eval("NameId")%>" name="THECHECK" type="checkbox" />
                                            </td>
                                            <td>
                                                <%#Eval("Name")%>
                                            </td>
                                            <td>
                                                <%# Eval("Gender")%>
                                            </td>
                                                                                        <td>
                                                <%# Eval("Age")%>
                                            </td>
                                            <td>
                                                <a href="javascript:;" onclick="AddItem('<%#Eval("FNaemID%>');">添加Add</a>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <tr class="table_Page">
                                    <td height="25" colspan="2" align="center">
                                        <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager2"
                                            runat="server" FirstPageText="Fir" LastPageText="Last" NextPageText="Next" PageIndexBoxType="TextBox"
                                            PrevPageText="Pre" ShowPageIndexBox="Never" SubmitButtonText="Go" TextAfterPageIndexBox=" Page "
                                            TextBeforePageIndexBox=" To " CenterCurrentPageButton="True" PageSize="20" OnPageChanged="AspNetPager2_PageChanged2">
                                        </webdiyer:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="boxbtn">
                            <asp:Button ID="BtnAdd" runat="server" Text="添加" OnClientClick="SelectValue()" OnClick="AddProduct_Click" />
                            <asp:Button ID="Button1" runat="server" Text="关闭" OnClientClick="Close();" UseSubmitBehavior="false" />
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答