| |||||||||||||||||||||||||||||
<customErrors> SectionASP.NET Syntax ASP.NET Configuration Sections Provides information about custom error messages for an ASP.NET application. <customErrors
defaultRedirect = "url"
mode = "On | Off | RemoteOnly">
<error
statusCode = "statuscode"
redirect = "url" />
</customErrors>
The <customErrors> tag supports two attributes and one subtag.
The <error> tag supports two attributes.
Syntax ExampleThe following example specifies the error handling pages to use for an ASP.NET application. <configuration>
<system.web>
<customErrors defaultRedirect = "genericerror.html"
mode = "RemoteOnly">
<error statusCode = "500"
redirect = "InternalError.html" />
</customErrors>
</system.web>
</configuration>
See AlsoASP.NET Configuration CustomErrorsSection Class CustomErrorsMode Enumeration |
| ||||||||||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme