我有一个存在两个面板的更新面板。每个面板都有两个按钮来打开弹出窗口。我有两个modalpopup &它的目标面板正下方的两个panels.Everything工作正常,但我遇到问题,如果我点击第一个面板中的按钮,然后modalpopup不会打开,但当我点击按钮后第二个面板中点击按钮然后弹出第一个面板& viceversa。 我用下面的代码:第一个面板中的第一个模式弹出不会打开,直到第二个面板中的第二个模式弹出打开为止
<asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="pnl1" runat="server">
<asp:Button ID="btn1" runat="server" class="add-btn-1" Text="Add" />
</asp:Panel>
<asp:Panel ID="pnl2" runat="server">
<asp:Button ID="btn2" runat="server" class="add-btn-1" Text="Add" />
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopup1" PopupControlID="pnlpopup1" TargetControlID="btn1"
BackgroundCssClass="modalBackground" runat="server" />
<asp:Panel runat="server" ID="pnlpopup1">
<%--code here--%>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopup2" PopupControlID="pnlpopup2" TargetControlID="btn2"
BackgroundCssClass="modalBackground" runat="server" />
<asp:Panel runat="server" ID="pnlpopup2">
<%--code here--%>
</asp:Panel>
</ContentTemplate>
会有什么解决方案来解决这个问题呢?
谢谢。
请发布您的代码 – Prashant16