Click here to Skip to main content
15,911,317 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi All,

I am developing webApplication(Framework 4.0).i have 2 page
1.Page1.aspx
2.Page2.aspx

In my Page1.aspx, i have a one button.when I press the button page2.aspx will open as a separate small window(using javascript "window.open('page2.aspx')").
My scenario is when page2.aspx(small window) is opened ,page1.aspx never allow to access(if i try to click page1.aspx not allowed).if i closed pasge2.aspx(small window) then only page1.aspx should able to access.at a time only one page should be active.

Can you all help me please.

Thanks in Advance
Posted
Updated 20-Jul-11 6:06am
v5

Via Jquery it's easier to do,but I am not sure how it is possible using javascript.A possible solution is to put the child window contents in a div on parent page itself and make that div visible true when button is clicked.When div opens find all the contents of the page and disable them.
 
Share this answer
 
Comments
Murugesan Solaiyappan 20-Jul-11 12:08pm    
please try to read my question what exactly.this is unrelated answer.
Instead of window.open, use showModalDialog[^]
 
Share this answer
 
Comments
Murugesan Solaiyappan 20-Jul-11 12:12pm    
showmodeldialog not working
Manas Bhardwaj 20-Jul-11 12:13pm    
Not working? Can you show us your code?
Murugesan Solaiyappan 20-Jul-11 12:16pm    
this code is working but my scenario is not satisfy.at a time i can able to access both page.actual scenario is at a time one page should be active
maya-123 12-Jun-12 0:42am    
show modal dialog is problematic when using google chrome. It neither disables parent window and allows multiple popup of same child window too
check this out:

disable-parent-window[^]

or you can use modalpopup
refer this:

Modal-Popup[^]

hope it helps :)
 
Share this answer
 

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