Click here to Skip to main content
15,883,709 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hello Everybody,
I want to refresh parent page when I close child page in ASP.net (vb.net, c#).

Thanks
Posted

You try this code

Response.AddHeader("Refresh","10:url=Test.aspx");
 
Share this answer
 
In body tag of the document of child window, place the following

onunload="window.opener.location.reload();"
 
Share this answer
 
v2
Page.Response.Redirect(Page.Request.Url.ToString(), true);
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900