Click here to Skip to main content
12,078,489 members (46,231 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# jQuery
I used Stunning popup to open a page in a popup window using



[^]


After child page( popup.aspx) is popped out I have to refresh a parent page(Default.aspx) as i have


asp controls in parent page which needs to be reloaded .


How to Refresh a parent page in this case when popout itself is a page




Smile | :)
Posted 7-Jun-12 20:41pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You need to invoke the parent page reload from the child at the time of closing. Few discussed here.[^]
Try:
window.close();
if (window.opener && !window.opener.closed) {
      window.opener.location.reload();
 } 

Alternatively,
If you are using ModalDialog then you will have control on when the window was closed in Parent page itself. You can use that as an event to reload the parent page. Have a look at the example here.[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web03 | 2.8.160212.1 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100