edgartronic
asked on
Modal Popup stops page from processing
Hi folks.
I am trying to implement the Modal Popup Extender control from the Ajax Control Toolkit into one of my forms. The intent was that I had a "please wait" blurb within the modal popup while the page processed user info in the background then, once the page was done processing, it would hide the modal popup and redirect to the next page.
What's happening, though, is that the modal popup comes up when I hit my submit button and stops the page from processing completely.
What am I doing wrong here?
Gracias!
I am trying to implement the Modal Popup Extender control from the Ajax Control Toolkit into one of my forms. The intent was that I had a "please wait" blurb within the modal popup while the page processed user info in the background then, once the page was done processing, it would hide the modal popup and redirect to the next page.
What's happening, though, is that the modal popup comes up when I hit my submit button and stops the page from processing completely.
What am I doing wrong here?
Gracias!
Form:
<asp:ImageButton ID="submit" CssClass="form_btnTemp" runat="server"
ImageUrl="~/Images/getmyquote_button.gif" onclick="submit_Click" />
<cc1:ModalPopupExtender ID="ModalPopupExtender1" TargetControlID="submit" PopupControlID="Panel1" BackgroundCssClass="modalBackground" runat="server">
</cc1:ModalPopupExtender>
<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" Style="display:none;">
<img src="Images/indicator_medium.gif" alt="Please Wait." /><br /><br />Please wait while your<br />application is being submitted.</asp:Panel>
Code-behind:
protected void submit_Click(object sender, ImageClickEventArgs e)
{
ModalPopupExtender1.Show();
Method1();
Method2();
ModalPopupExtender1.Hide();
Response.Redirect("here.aspx");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER