我有一個存在兩個面板的更新面板。每個面板都有兩個按鈕來打開彈出窗口。我有兩個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