Skip to content

Why popup message box only can be closed one time?

Ellen Hu

Asked Jun 22, 2008, 7:36 PM EDT3 answers
Share
LinkedInX

Hi All,

I need some help at following scenario

Had an Ajax message popup box after clincking "Submit" button (page A) to tell the user that Thank you for submitting, on which have an "OK" button

the problem is:

1) if it is the first time have the popup, click "OK" the msg box will be closed, and back to previous page (page A)

2) On page A, click "Submit" button again, popup box would be displayed again; but click "OK", the msg box will not disappear.

Does anyone give me some suggestion? Thank you in advance.

Ellen

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Niradhip Chakraborty
    0
    can you please send the code? So that it will be easy for us to identify the bug.
    0
  • Bechir Bejaoui
    0
    Witch framework Ajax do you use is it developed locally by you we need more details
    0
  • 0

    Hi,

    Thank you for your time to take look my problem. The following is the detail.  Really appreciate your time.

    Ellen

    ///PersonalMessages.ascx

    more code

    <asp:ImageButton ID="btnSave" runat="server" ImageUrl="/Images/buttons/Save.png" OnClick="btnSave_Click" />

    more code

    <asp:Panel ID="pnlForm" runat="server" Style="display: none" CssClass="FullTextModalPopup">

    <uc:borderusercontrol id="bucFeedbackform" theme="true" skin="light" runat="server" Width="300">

    <Sections>

    <uc:BorderUserControlSection runat="server">

    <Header>

    <uc:ThanksForm ID="ucThanksForm" runat="server" ShowThankYouMessage="false" />

    </Header>

    </uc:BorderUserControlSection>

    </Sections>

    </uc:borderusercontrol>

    <ajaxToolkit:ModalPopupExtender ID="mpeModalWindow" runat="server" TargetControlID="btnSave"

    PopupControlID="pnlForm" BackgroundCssClass="ModalBackground"

    DropShadow="false" PopupDragHandleControlID="pnlForm" />

    </asp:Panel>

    ///ThanksForm.ascx

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThanksForm.ascx.cs" Inherits="Com.Wolfgang.BlastoffVentures.YourCause.Web.ThanksForm" %>

    <%@ Register Src="~/BaseApplicationCode/BorderUserControl.ascx" TagPrefix="uc" TagName="BorderUserControl" %>

    <%@ Register Src="~/BaseApplicationCode/BorderUserControlSection.ascx" TagPrefix="uc" TagName="BorderUserControlSection" %>

    <table cellpadding="0" cellspacing="0" border="0" width="330" style="padding-top:10px;">

    <tr>

    <td align="left" valign="middle">

    <strong><asp:Label Text="Thank you" runat="server" /></strong>

    </td>

    </tr>

    <tr>

    <td align="center">

    <asp:Label ID="lblName" Text="Thank you ...." runat="server" />

    </td>

    </tr>

    <tr>

    <td align="center">

    <asp:ImageButton ID="btnSubmit" CausesValidation="true" ImageUrl="/Images/buttons/submit.png" runat="server" OnClick="btnSubmit_Click"/>

    </td>

    </tr>

    </table>

    0