Redigera

Dela via


ScriptManager.AllowCustomErrorsRedirect Property

Definition

Gets or sets a value that determines whether the custom errors section of the Web.config file is used during an error in an asynchronous postback.

public:
 property bool AllowCustomErrorsRedirect { bool get(); void set(bool value); };
public bool AllowCustomErrorsRedirect { get; set; }
member this.AllowCustomErrorsRedirect : bool with get, set
Public Property AllowCustomErrorsRedirect As Boolean

Property Value

true if the custom errors setting in the Web.config file is used to determine error behavior during asynchronous postbacks; otherwise, false. The default is true.

Remarks

The AsyncPostBackError event is raised when there is a page error during asynchronous postbacks. How errors on the server are sent to the client depends on the AllowCustomErrorsRedirect property, the AsyncPostBackErrorMessage property, and the custom errors section of the Web.config file.

Applies to

See also