troubleshooting Question

Refresh parent page after closing a modalDialog window

Avatar of Relegence
RelegenceFlag for Israel asked on
3 Comments1 Solution2626 ViewsLast Modified:

I am developing a C# application, where i am using a modalDialog window (opened by javascript).

I have 2 buttons in the modalDialod window - close, save.

When pressing each of the buttons, a new window is opened instead of closing the window (when pressing 'close') or closing the window and refreshing the parent window (when pressing 'save').

I have added <base target="_self"> to my modalDialog so that when i press the 'close' button it works fine now, the window is closed.

But, i still have a problem with the 'Save' button. When pressing 'Save' i want to refresh the parent window (window.parent.location.href = window.parent.location.href) and close the modalDialog. What happens is that a new window is opened and the parent window is not refreshed.

Any ideas?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros