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
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jun 23, 2008, 12:46 AM EDT
Bechir BejaouiRank #144 · 15.9K pointsPosted Jun 23, 2008, 3:58 AM EDT
Ellen Hu38 pointsPosted Jun 23, 2008, 7:02 AM EDT
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>