Example #1
0
        private static void PreSendRequestHeaders(object sender, EventArgs e)
        {
            var context = ((HttpApplication)sender).Context;

            if (context.Error == null &&
                context.Response.StatusCode == 302 &&
                AjaxRedirectHelper.IsAjaxRequest(context.Request))
            {
                context.Response.StatusCode = AjaxRedirectHelper.AjaxRedirectStatusCode;
            }
        }
Example #2
0
 public static bool IsAjaxRequest(this HttpRequest request)
 {
     return(AjaxRedirectHelper.IsAjaxRequest(request));
 }