public static void StaticRedirect(string addressOrBasePath, bool retainParameters) { if (retainParameters) { WebQuery query = new WebQuery(Context); query.Redirect(addressOrBasePath); } else { Context.Response.Redirect(addressOrBasePath); } }
public static void StaticRedirect() { WebQuery query = new WebQuery(HttpContext.Current); query.Redirect(); }