Skip to content

Instantly share code, notes, and snippets.

@umair-me
Created September 19, 2013 12:39
Show Gist options
  • Save umair-me/6622837 to your computer and use it in GitHub Desktop.
Save umair-me/6622837 to your computer and use it in GitHub Desktop.
Redirect the current request back to the current page
/// <summary>
/// Redirect the current request back to the current page = full page reload
/// </summary>
public static void RedirectSelf(this HttpResponse response)
{
response.Redirect(HttpContext.Current.Request.RawUrl);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment