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' />
Home / FAQ / ASP.NET / Error Handling / How can I have a particular Web page in an ASP.NET application which displays its own error page.
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