Introduction:
Here I will explain how to set custom error page in web.config in asp.net or display custom error page in asp.net in case url pattern not matched or asp.net redirect to default error page in case non existing pages. By enabling customErrors in web.config file in asp.net we can display or redirect to custom error page whenever error throws in application.
Description:
In previous articles I explained jQuery show session timeout message before session expires, asp.net master page menu control example, asp.net integrate facebook login to website, asp.net detect browser refresh to avoid events fire again, asp.net set session timeout in web.config, iis, Display time like facebook/twitter like 1 minute ago, hour ago, use of using statement in c# and many articles relating to asp.net, css, c#, vb.net and jQuery. Now I will explain how to set / display / redirect to custom error page in asp.net in case of non-existing pages.
In previous articles I explained jQuery show session timeout message before session expires, asp.net master page menu control example, asp.net integrate facebook login to website, asp.net detect browser refresh to avoid events fire again, asp.net set session timeout in web.config, iis, Display time like facebook/twitter like 1 minute ago, hour ago, use of using statement in c# and many articles relating to asp.net, css, c#, vb.net and jQuery. Now I will explain how to set / display / redirect to custom error page in asp.net in case of non-existing pages.