Hey everyone,
I am working with a modalpopupextender that is supposed to have the .show() event happen from a clickevent in another modalpopupextender. What the issue is, is that in IE9 (works in FF, chrome, etc..) every 3 or 4 times this event is triggered the modalpopup doesn't show. I have debugged the code and the .Show() events are being hit properly, but sometimes just doesn't show the modal popup and I don't know why. Here is the code to the initial modalpopup where the "Continue" button is clicked to launch the second popupextender.
Any help would be greatly apprecaited.
Thank you,
NickG
Original Popup:
<cc1:ModalPopupExtender ID="ModalPopupExtender7" runat="server" TargetControlID="linkBtnConfirm" PopupControlID="pnlConfirmAccountAdd" BackgroundCssClass="modalBackground"></cc1:ModalPopupExtender><asp:Panel ID="pnlConfirmAccountAdd" runat="server" width="500px" style="display:none; background-color:White;border-style:solid;border-width:1px;margin-left:10px;margin-right:10px"><div class="SectionHeaderBar" style="padding-top:8px;height:30px;width:500px;background-repeat:repeat-x;border-style:none;font-size:11pt"> Add Accounts</div><div class="FontStandard" style="padding : 10px 10px;"><b>Warning:</b> Accounts can exist in one household only. Therefore, if an account already exists in a household, adding the account to a different household will remove it from the current household, as well as remove the account from any groups it is currently assigned to. In addition, adding/removing accounts to/from a household will impact historical valuations and performance on client statements if the account is currently in a group.<br /><br /> Would you like to add an account(s) to this household?</div> <asp:TextBox ID="TextBox3" runat="server" style="display:none"></asp:TextBox><asp:TextBox ID="TextBox4" runat="server" style="display:none"></asp:TextBox><br /><div style="text-align:right;"><asp:ImageButton onmouseover="this.src='/applications/images/cancel2_over.gif'" onmouseout="this.src='/applications/images/cancel2.gif'" ImageUrl="/applications/images/cancel2.gif" id="btnConfirmNoAdd" runat="server" CausesValidation="False" onclientclick="javascript:ModalHide()"/> <asp:ImageButton onmouseover="this.src='/applications/images/Continue_hover.gif'" onmouseout="this.src='/applications/images/continue.gif'" ImageUrl="/applications/images/continue.gif" ID="btnConfirmContinue" runat="server"/> </div><br /></asp:Panel>
Popup that doesn't always show correctly:
<asp:linkbutton id="linkDummy" runat="server" style="display:none"><img src="/applications/images/icons/Add_icon.gif" alt="add accounts" style="border:0; padding-right:5px" />Add Accounts</asp:linkbutton> <cc1:ModalPopupExtender ID="mpeAccounts" runat="server" TargetControlID="linkDummy" PopupControlID="pnlSearchAccounts" BackgroundCssClass="modalBackground"> </cc1:ModalPopupExtender><asp:Panel ID="pnlSearchAccounts" class="accountSearch" runat="server" ScrollBars="Vertical" Height="600" style="display:none;background-color:white;width:680px;overflow:hidden;"><asp:UpdatePanel ID="updtpnlAccounts" runat="server" UpdateMode="conditional"><ContentTemplate><table cellpadding="0" style="width:680px" cellspacing="0" border="0"><tr> <hcpu:HeaderControlPU id="hc" runat="server"></hcpu:HeaderControlPU> </tr></table> <asp:Panel ID="pnlsearch" runat="server" style="margin-left:10px;margin-right:10px;margin-bottom:10px;"></asp:Panel> </ContentTemplate></asp:UpdatePanel><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="width:640px" align="right"><asp:Button ID="btnModalClose" Text="Close" runat="server" /></td><td style="width:40px" align="right"> </td></tr></table> </asp:Panel>
Private Sub btnConfirmContinue_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnConfirmContinue.Click Me.ModalPopupExtender7.Hide() LoadSearchControl() mpeAccounts.Show() pnlSearchAccounts.Visible = True End Sub