Gaurav Pal

Gaurav Pal

  • NA
  • 306
  • 68.7k

ASP.net AJAX Modal Popup Control

Feb 8 2016 1:57 AM
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
 
<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 :
 
<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 : 
 
protected void btn_Contine_Budget_Click(object sender, EventArgs e)
{
 Response.Redirect("My_Task.aspx");
 }
 
 
 
 
 

Answers (2)