Live Chat Icon For mobile
Live Chat Icon

How can I have a particular Web page in an ASP.NET application which displays its own error page.

Platform: ASP.NET| Category: Error Handling

This can be done by setting the ErroPage attribute of Page Directive or ErrorPage property of Page Class to the desired Custom Error Page


<%@Page Language='C#' ErrorPage='specificerropage.htm'%>

In web.config


<customErrors mode='On' />

Share with

Share on twitter
Share on facebook
Share on linkedin