If you are using MVC, use RedirectToAction with a TempData or QueryString passed as error id. Using that error id, display a message box in the target action or view.