asp.net.ph

CustomErrorsMode Enumeration

System.Web.Configuration Namespace


.NET Framework version 2.0

Specifies the values for the custom errors modality.

Members


Member Description
Off Disables custom errors, allowing display of standard errors.
On Enables custom errors. If no DefaultRedirect is specified, standard errors are issued.
RemoteOnly Enables custom errors on remote clients only. Custom errors are shown only to remote clients and ASP.NET errors are shown to the local host.

Remarks

The CustomErrorsMode enumerates the values you can use when setting the Mode property. These values define whether custom errors are enabled, disabled, or shown only to remote clients.

Example

The following code example shows how to set the Mode property.

// Get the current Mode.
CustomErrorsMode currentMode = customErrorsSection.Mode;

// Set the current Mode.
customErrorsSection.Mode = CustomErrorsMode.RemoteOnly;
  C# VB

See Also

<customErrors> Section   CustomErrorsSection Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph