Home:ALL Converter>Adding two ajax modal popup in a single page

Adding two ajax modal popup in a single page

Ask Time:2012-02-13T12:44:56         Author:lixi

Json Formatter

I encountered a problem where i add two ajax modal popup in a single page. This two modal popup each do different things. one is is create and one is for update. When two modal popup, my update button cannot be click ans execute the update codes. And when i remove my create modal popup, my updates work? Can anyone tell me how do i make two popup exist in the same page?

<!--Modal Popup: Create Topic-->
        <cc1:modalpopupextender ID="ModalPopupExtender1" runat="server" 
        TargetControlID="btnShowPopup" PopupControlID="pnlCreatePopup" 
        CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
        </cc1:modalpopupextender>

        <asp:Panel ID="pnlCreatePopup" runat="server"  CssClass="createModalPopup">


<!--Modal Popup: Update Topic-->
    <asp:Button ID="bnUpdateShow" runat="server" style="display:none;" />

        <cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="bnUpdateShow" PopupControlID="pnlpopup" CancelControlID="btnUpdateCancel" BackgroundCssClass="modalBackground">
        </cc1:ModalPopupExtender>

    <asp:Panel ID="pnlpopup" runat="server" CssClass="topicModalPopup">

Author:lixi,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/9255715/adding-two-ajax-modal-popup-in-a-single-page
yy