I ran into a small roadblock this morning with HandleError. Users are directed properly to the /Views/Shared/Error.aspx. This view uses a Master Page which also displays just fine. It also logs the particulars of the ViewData.Model.Exception in its Page_Load method. An acceptable use of codebehind in my opinion.
My problem is this: The page contains a strongly-typed Partial View that contains some of the user's input data. I would like to retain access to that data even after the exception occurs - so the user isn't doubly-penalized for our exception (being presented with an error message AND losing their form values).
Is there a way to accomplish this using HandleError or another reusable attribute?