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.
I use
Response.Redirect(Page.Request.Path);
If you have to check for the Request.Params when the page is refresh use below. This will not rewrite the Request.Params to the URL.
Response.Redirect(Page.Request.Path + "?Remove=1");
You shouldn't use:
Page.Response.Redirect(Page.Request.Url.ToString(), true);
because this might cause a runtime error.
A better approach is:
Page.Response.Redirect(Page.Request.Url.ToString(), false);
Context.ApplicationInstance.CompleteRequest();
Call Page_load function:
Page_Load(sender, e);
Response.Redirect(Request.Url.ToString());