Rstevoa
1
Q:

Response.Redirect cannot be called in a Page callback

// Butchered together from multiple answers

if (!Page.IsCallback)
    Request.Redirect("~/Error.aspx");
else
  HttpContext.Current.Response.RedirectLocation =
  			System.Web.VirtualPathUtility.ToAbsolute("~/Error.aspx");
0

New to Communities?

Join the community