Monday, 23 November 2015

Response.Redirect cannot be called in a Page callback

Issue:Response.Redirect cannot be called in a Page callback when using devexpress controls

Solution :
  if (Session.IsNewSession || !User.Identity.IsAuthenticated)
            if (IsCallback)
                DevExpress.Web.ASPxClasses.ASPxWebControl.RedirectOnCallback("SessionTimeout.aspx");
            else
                Response.Redirect("SessionTimeout.aspx");




Avast logo
This email has been checked for viruses by Avast antivirus software.
www.avast.com

No comments:

Post a Comment