Saturday, August 19

ASP.NET Custom Error Pages

I came across this article about ASP.NET custom error pages while trying to trap exceptions before the user sees them. I needed to implement a global exception handler plus a way to redirect the user to a generic error page in case of uncaught exceptions.

http://www.aspnetresources.com/articles/CustomErrorPages.aspx

This helped in trapping uncaught application, Page exceptions

Point to Note
ctx.Server.ClearError();

should be commented in
global.asax
OnError event of base page


in case we want the user to be redirected to a custom error page as set in web.config

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]