Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Helo Developers,

I'm using ajax ModalPopupExtender in my code. After login i am calling another page in popup window. My problem is when i have complete the work on called page and then click the called page event and what to redirect the page to another page that page open in popup up window. But i want to open it in normal form. Below is my code for Login in design page and called page

Login Page

ASP.NET
<ajaxToolkit:ModalPopupExtender ID="mp5" runat="server" PopupControlID="Panel1" TargetControlID="btnlogin"
CancelControlID="btnClose" BackgroundCssClass="modalBackground">
</ajaxToolkit:ModalPopupExtender>
<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" align="center" style = "display:none">
<asp:ImageButton ImageAlign="Right" ID="btnClose" Width="32px" Height="32px" ImageUrl="~/images/Close.png" runat="server" />
<iframe style=" width: 550px; height: 500px; border:0" id="irm1" src="Post_task.aspx" runat="server"></iframe>
</asp:Panel>


Post Task Page :

ASP.NET
<div style="text-align: left">
<asp:Button ID="btn_Contine_Budget" Width="350px" runat="server" class="btn btn-default" Text="Get Quotes Now" OnClick="btn_Contine_Budget_Click" />
</div>


Post Task Code Page :

C#
protected void btn_Contine_Budget_Click(object sender, EventArgs e)
{
 Response.Redirect("My_Task.aspx");
 }


What I have tried:

I'm using ajax ModalPopupExtender in my code. After login i am calling another page in popup window. My problem is when i have complete the work on called page and then click the called page event and what to redirect the page to another page that page open in popup up window. But i want to open it in normal form. Below is my code for Login in design page and called page
Posted
Updated 8-Feb-16 0:14am
v2
Comments
Sinisa Hajnal 8-Feb-16 3:11am    
You have to close the popup first, check the result in the original page (the one you called the popup from) and THEN redirect.
Gaurav Pal 26 8-Feb-16 3:15am    
but how i am close the popup from original page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900