.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Doubt in popup window.Urgent requirement

Posted By: Suresh     Posted Date: April 03, 2009    Points:2   Category :ASP.Net
I have doubt in popup window. In my application, I have two page (parent.aspx and child .aspx) . Child. Aspx which represent pop up window. In my parent.aspx page I have three button(add,update,delete). When I click add button in the parent page, that will open popwindow (i.e. child.aspx)

My requirement is

1. when child.aspx (popup window) opens, the user should not allow to access the parent.aspx.. But parent page could view behind the popup window..
2. after we close the child.aspx(popup window), then only user can access the parent page(i.e.parent.aspx)

My friend's r said, we can implement through JavaScript. Can any one plz guide me through sample code. It's very urgent for my project.

I have used (window.open ) for popupwindow.. In my project I should not use modular dialogbox for popup window.

Thanks In Advance

Author: Athira Sreejith             
Posted Date: April 03, 2009     Points: 5   


You can move ajax control.ie, Modelpopupextnder control.

<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="PanelEntry" runat="server">
<asp:Panel ID="panel1" runat="server">

// keep ur Parent Page

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:Button ID="btnbutton" Style="display: none" runat="server" OnClick="btnbutton_Click" />
<cc1:ModalPopupExtender ID="ModalPopupExtenderLogin" runat="server" TargetControlID="btnbutton"
PopupControlID="LoginPanel" BackgroundCssClass="modalBackground" DropShadow="true"
<asp:Panel ID="LoginPanel" runat="server" Style="display: none; background-color: #EBF5FC;
padding-bottom: 30px; border-style: solid; border-width: 2px; border-color: #074870;"
Width="95%" ScrollBars="Vertical" Height="400">

///Keep u r child controls

call use in .cs Page:
btnbutton_Click(sender, e);

Author: Suresh             
Posted Date: April 03, 2009     Points: 5   

Nice explantion Appukuttan,

The issue is, im using window.open for popup window. i cant change this method. once i change the method, i need to change in my entire application. my requirement is make use of javascript r any other approach, to hold the popup window. can u plz guide me.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend