ASP.NET Tutorial/Configuration/customErrors
Custom Error Messages
<source lang="csharp">
<?xml version="1.0" encoding="utf-8" ?> <configuration>
<system.web> <customErrors mode="On" defaultRedirect="Default.aspx" /> </system.web>
</configuration></source>
Disable custom errors
<source lang="csharp">
File: Web.Config <configuration>
<system.web> <customErrors mode="Off" /> </system.web>
</configuration></source>