Skip to content

Instantly share code, notes, and snippets.

@stevejay
Created May 5, 2014 21:11
Show Gist options
  • Save stevejay/5b81d0735aebc6595814 to your computer and use it in GitHub Desktop.
Save stevejay/5b81d0735aebc6595814 to your computer and use it in GitHub Desktop.
var viewResult = new ViewResult {ViewName = "ManualErrors"};
// Setting of values on its ViewBag here.
viewResult.ExecuteResult(controllerContext);
HttpContext.Current.Server.ClearError();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment