Manages partial-page updates of server UpdatePanel controls in the browser. In addition, defines properties, events, and methods that can be used to customize a Web page by using client script.
You do not create a new instance of the PageRequestManager class directly. Instead, an instance is available when partial-page rendering is enabled. Call the getInstance method to get the instance of the PageRequestManager class.
Initializes a new instance of the Sys.WebForms.PageRequestManager Class.
Raised before processing of an asynchronous postback starts and the postback request is sent to the server.
Raised after an asynchronous postback is finished and control has been returned to the browser.
Raised during the initialization of the asynchronous postback.
Raised after all content on the page is refreshed as the result of either a synchronous or an asynchronous postback.
Raised after the response from the server to an asynchronous postback is received but before any content on the page is updated.
Stops all updates that would occur as a result of an asynchronous postback.
Returns the instance of the PageRequestManager class for the page.
Returns a value that indicates whether the PageRequestManager object is processing a postback.
This class contains private members that support the client-script infrastructure and are not intended to be used directly from your code. Names of private members begin with an underscore ( _ ).
You do not create an instance of the PageRequestManager directly. When partial-page rendering is enabled, an instance of the PageRequestManager class is automatically available. You can access it through the getInstance method.
The PageRequestManager class defines events that you can use to customize your page's partial-page rendering. The client infrastructure supports automatic event binding similar to the way that server page events are automatically bound to methods such as Page_Load. The following table lists client events that you can use, and scenarios in which you might handle them. The events are listed in the table in the order in which they are called by the PageRequestManager class.
Raised before processing of the asynchronous request starts. You can use this event to cancel a postback.
Raised before processing of an asynchronous postback starts and the postback is sent to the server. You can use this event to set request headers or to begin an animation that indicates that the page is processing.
Raised after the response from the server to an asynchronous postback is received but before any content on the page is updated. You can use this event to provide a custom transition effect for updated content.
Raised after all content on the page is refreshed, as a result of either a synchronous or an asynchronous postback. You can use this event to provide a custom transition effect for updated content.
Raised after an asynchronous postback is finished and control has been returned to the browser. You can use this event to provide a notification to users or to log errors.
The following example shows how to use the beginRequest event to display a progress notification during asynchronous postbacks. The getInstance method is called to get the current PageRequestManager instance. Script is included in handlers for the beginRequest and endRequest events.