Tuesday, September 3, 2013

how to refresh parent page from child page or popup window

To refresh the parent page on child page closing,
write this code in aspx page body tag of child window

<body onunload="window.opener.location.reload();">

close the child page once operation is done.

Page.ClientScript.RegisterStartupScript([GetType], "Close", "javascript:window.close();", True)

No comments:

Post a Comment