Click here to Skip to main content
15,913,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how we can fire page load event of parent window after closing the popup as showmodaldialog. i am working in visual studio 2003. please help me
Posted

1 solution

You can't fire the page load event since you working in javascript. You can however cause the parent page to refresh which will reload the page

Window.opener.location.href = window.opener.location.href.
 
Share this answer
 
Comments
jincyn 21-Aug-11 12:03pm    
iam using showmodaldialog popup
[no name] 21-Aug-11 12:15pm    
Yes, I got that from your question. What is your point?
jincyn 21-Aug-11 12:22pm    
we can use window.opener.forms(0).submit for call pageload event of parent in popupwindow open as window.open method
which method pageload of parent using showmodaldialog
[no name] 21-Aug-11 12:56pm    
No you are not calling the page load event. You are submitting the form which causes a postback which processes the page in accordance with the ASP.NET page lifecycle. You CANNOT call the PageLoad event directly from JavaScript

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