Compartir a través de


Sys.WebForms Exceptions

Defines exceptions that can occur during partial-page updates. These exceptions are created dynamically using the Error.create function and cannot be instantiated or invoked.

Namespace: Sys.WebForms

Inherits: None

Exceptions

Name

Description

Sys.WebForms.PageRequestManagerParserErrorException

Raised when an error occurs while processing the response from the server.

Sys.WebForms.PageRequestManagerServerErrorException

Raised when an error occurs on the server.

Sys.WebForms.PageRequestManagerTimeoutException

Raised when the request times out.

Remarks

A partial-page update is initiated by a client request (an asynchronous postback) to the server. The server processes the request and returns a response to the client.

If the browser does not receive a response in a specified time, the Sys.WebForms.PageRequestManagerTimeoutException is raised. To change the interval that elapses before asynchronous postbacks time out, set the AsyncPostBackTimeout property of the ScriptManager control.

If an error occurs on the server while the request is being processed, an error response is returned to the browser and the Sys.WebForms.PageRequestManagerServerErrorException exception is raised. To customize error handling and to display more information about the server error, handle the AsyncPostBackError event and use the AsyncPostBackErrorMessage and AllowCustomErrorsRedirect properties. For an example of how to provide custom error handling during partial-page updates, see Customizing Error Handling for ASP.NET UpdatePanel Controls.

If the response to an asynchronous postback returns without an error but there is an error processing the response in the client, the Sys.WebForms.PageRequestManagerParserErrorException is raised. For information about how to handle this error condition, see Debugging and Tracing Ajax Applications Overview.

See Also

Reference

Error.create Function

Concepts

Sys Exception Types