ASPX templates
Version 4.x > ASPX templates > Custom error page View modes: 
User avatar
Member
Member
idontsov-smartru - 3/19/2009 11:55:01 AM
   
Custom error page
Hi!

I'd like to display custom error page when unhandled exception happens.

In regular ASP.NET application I could use <customErrors> section in web.config or write Application.Error handler in order to alert site administrator about the error and display friendly message to user.

How can I create custom error page in Kentico CMS?

Thanks in advance!

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 3/24/2009 10:01:42 AM
   
RE:Custom error page
Hi,

You can use defaultredirect attribute of <customErrors> section in web.config even with Kentico CMS to redirect user to some page with friendly message.

You can also use CustomExceptionHandler: http://www.kentico.com/docs/devguide/exception_handler_customexcept.htm

Best Regards,

Martin Dobsicek