Skip to content

Doubt in popup window?

Kumar Shanmugam

Asked Aug 4, 2012, 1:23 AM EDT2 answers
Share
LinkedInX
Hi
I am Kumar, I am new user in C-sharpcorner and i am new and beginner  in .net, so i want to learn new thing from us,


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 Question is

1. How can made this requirement?
2.Which method or any else to use and make this requirement?
3. If anybody answer to this please write the code also because i am new in .net

I hope u all and
Thanks In Advance


Regards by

Kumar Shanmugam

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Akkiraju Ivaturi
    0
    You have to modal dialog window. When a modal dialog window is opened by a parent you cannot work on parent till you close the modal dialog.

    var answer = window.showModalDialog("child.html",argsVariable,
    "dialogWidth:300px; dialogHeight:200px; center:yes");
    0
  • 0
    this code is only for open a popup(child.aspx) window. after that its not work in IE,chrome,opera browser. Its work in firefox only.... So how can i solve this? Help me...
    0