Refresh a page after downloading.

Posted by Nithadeepak under ASP.NET on 12/13/2011 | Points: 10 | Views : 26101 | Status : [Member] | Replies : 1
I want to refresh the page after downloading a file.
How can I refresh a page after a Response.end() .

Nitha Deepak


Posted by: Hmanjarawala on: 12/13/2011 [Member] Bronze | Points: 25

Write this statement after Response.End()
in C#
ScriptManager.RegisterStartupScript(this, this.GetType(), "onload", "javascript:location.reload(true);", true);

in VB
ScriptManager.RegisterStartupScript(Me, GetType(), "onload", "javascript:location.reload(true);", True)

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere

Nithadeepak, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response