Refresh Page C# ASP.NET

Eric picture Eric · Feb 10, 2010 · Viewed 213.8k times · Source

Is there a Page.Refresh type of command to refresh a page?

I don't want to redirect to the page or refresh in JavaScript.

Answer

Fermin picture Fermin · Feb 10, 2010

I think this should do the trick (untested):

Page.Response.Redirect(Page.Request.Url.ToString(), true);