how to refresh\reload parent window....

  • Thread starter Thread starter May
  • Start date Start date
M

May

I now this is not strictly a asp.net question but how do you refresh the
parent window of a child browser window?

The child window was displayed using javascript 'window.open' etc....

I have tried the following in the child window when a specific action
happens but the parent window does not refresh, any ideas?

System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("script language='javascript'>");
sb.Append("window.opener.location.href = window.opener.location.href");
sb.Append("</script>");
Page.RegisterStartupScript("RefreshParent", sb.ToString());

Cheers

Ollie
 
Back
Top