We help IT Professionals succeed at work.

refresh a modaldialog window opener on submit

1,079 Views
Last Modified: 2012-06-21
Hello,
I am writing a C# ASP.NET 2.0 application. I open a modaldialog in which i perform some actions. when "submit" button is pressed, i want to add some items to my database, close the modaldialog and refresh the opener, to show the new data.
How do i refresh the opener?
Thanks
Comment
Watch Question

Commented:
window.opener.reload();

Commented:
Actually, that should be:

window.opener.document.location.reload();

Author

Commented:
It doesn't work in a modaldialog. It works for window.open...

Commented:
By modaldialog, you simply mean a small window that you open, right?

In that window, call alert(window.opener); and make sure that it has a opener object.
Top Expert 2007
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.