Show a friendly page on ASP.net error
Posted on 2010-08-22
I have a website using a typed DataSet and each page is validateRequest = true;
I read that DataSet has a inner system to prevent SQL Injection.
In textboxes in my website, I only have required field validators.
If the user types a non-valid string, the asp.net raises a exception with the default asp.net error page.
What I actually want to do is make up the possible errors, redirecting the user to a friendly page. I'm already redirecting in error 404, but if any other exception occurs the default error page appears.
Thanks in advance!