【问题标题】:UpdatePanel and ModalPopup ExtenderUpdatePanel 和 ModalPopup 扩展器
【发布时间】:2010-03-08 17:14:38
【问题描述】:

我的表单设计为

<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之外)并关闭/取消弹出没有任何插入然后再次单击插入时,它不会调用 insert_onclick 事件。如果我单击其他按钮并单击此按钮,它将起作用。什么可能导致此问题,我该如何解决?

【问题讨论】:

    标签: c# .net asp.net ajax ajaxcontroltoolkit


    【解决方案1】:

    我解决了。在插入超链接中,我设置了 CausesValidation = False 并且它正在工作。我在弹出窗口中需要字段验证器,它们会导致问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-24
      • 1970-01-01
      • 2012-06-30
      • 1970-01-01
      • 2014-08-19
      • 2010-09-14
      • 1970-01-01
      相关资源
      最近更新 更多