Hi, I have 2 pages p1 nd p2 . p2 is popup on p1 button's click. I want on close of p2 , p1 must be refresh. so i write script on button of submit of p2 as :
String lsScript = "";
lsScript = "<Script JavaScript>refreshParent();";
lsScript += "</Script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "ClosePage", lsScript);
same script working on other pages in the same scenario. what should the problem.
function refreshParent() { window.opener.location.href = window.opener.location.href; if (window.opener.progressWindow) { window.opener.progressWindow.close() } //window.close(); }This is the refreshPsrent function