This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center
                            
                        
                    
                
                                6年前关闭。
            
                    
我在我的单个.aspx页中使用了两个弹出扩展程序,但是两个都没有弹出,但是当我删除两个中的任何一个时,都可以正常弹出。

<asp:Button ID="btnShowPopup" runat="server" style="display:none" />
<asp:Button ID="btnshowpopupisbn" runat="server" style="display:none" />

<asp:ModalPopupExtender ID="ModalPopupExtender1"     runat="server"TargetControlID="btnShowPopup" PopupControlID="pnlpopup"
CancelControlID="btnCancel" BackgroundCssClass="modalBackground"     PopupDragHandleControlID="pnlpopup" >
    </asp:ModalPopupExtender>
 <asp:Panel ID="pnlpopup" runat="server" CssClass="popup" >
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <ContentTemplate>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>

 <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server"       TargetControlID="btnshowpopupisbn" PopupControlID="pnlpopupisbn"   cancelControlID="btnCancel" BackgroundCssClass="modalBackground"    PopupDragHandleControlID="pnlpopup"></asp:ModalPopupExtender>
<asp:Panel ID="pnlpopupisbn" runat="server" CssClass="popup" Visible="False" >
<asp:UpdatePanel ID="UpdatePanel2" runat="server">


 <ContentTemplate>
 </ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>

最佳答案

您可以执行Panel Visible =“ False”

09-30 16:24
查看更多