Prevent Form Data Loss in ASP.NET on Application Error
Posted on 2003-03-12
I was wondering what is the best (and most secure) way to prevent a user from losing all of their entered form data if an application error (unhandled exception) occurs when they submit the form on an ASP.Net page. I try to handle errors as much as possible in the page, but sometimes there are a few bugs I didn't catch or a server error outside my control. I am using custom error pages, and if an unhandled exception occurs, the user loses all data entered on a form (even if they use the browsers back button).