代码之家  ›  专栏  ›  技术社区  ›  rs.

UpdatePanel和modalPopup扩展器

  •  1
  • rs.  · 技术社区  · 16 年前

    我的表格设计成

    <asp:Panel runat="server" Id="xyz">
      <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
    
              'Gridview with edit/delete - opens detailsview(edit template) with data 
               for editing
    
             </ContentTemplate>                
      </asp:UpdatePanel>
    
      <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
    
               'Hyperlink to open detailsview(insert template) for inserting records
    
             </ContentTemplate>                
      </asp:UpdatePanel>
    
    </asp:Panel>
    <asp:Panel runat="server" Id="xyz1">
    'Ajax modal popup extender control
    </asp:Panel>
    

    当我点击更新,交替插入, 但是,当我单击“插入超链接”(位于GridView外部)并关闭/取消弹出窗口而不插入任何内容,然后再次单击“插入”时,它不会调用“插入”onclick事件。如果我单击其他按钮并单击此按钮,它就会工作。是什么导致了这个问题?我该如何解决?

    1 回复  |  直到 16 年前
        1
  •  2
  •   rs.    16 年前

    我解决了。在insert hyperlink中,我将causesvalidation设置为false,它正在工作。我在弹出窗口中需要字段验证器,它们会导致问题。

    推荐文章