elements that represent UpdatePanel controls that will be updated in the DOM as a result of the current asynchronous postback.
+ * If the contents of any UpdatePanel controls will be updated as the result of a partial-page update, the panelsUpdating property contains an array that references the corresponding
elements.
+ * The pageLoading event of the Sys.WebForms.PageRequestManager class uses a PageLoadingEventArgs object to return its event data.
+ * @return An array of
elements that will be updated in the DOM. If no elements will be updated, the property returns null.
+ */
+ get_panelsUpdating(): HTMLDivElement[];
+
+ //#endregion
+
+ }
+
+ /**
+ * Manages client partial-page updates of server UpdatePanel controls. In addition, defines properties, events, and methods that can be used to customize a Web page with client script.
+ * @see {@link http://msdn.microsoft.com/en-us/library/bb311028(v=vs.100).aspx}
+ */
+ class PageRequestManager extends EventArgs {
+
+ //#region Constructors
+
+ /**
+ * Initializes a new instance of the Sys.WebForms.PageRequestManager Class.
+ */
+ constructor();
+
+ //#endregion
+
+ //#region Events
+
+ /**
+ * Raised before the processing of an asynchronous postback starts and the postback request is sent to the server.
+ * @param beginRequestHandler
+ * The name of the handler method that will be called.
+ */
+ add_beginRequest(beginRequestHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised before the processing of an asynchronous postback starts and the postback request is sent to the server.
+ * @param beginRequestHandler
+ * The handler method that will be removed.
+ */
+ remove_beginRequest(beginRequestHandler: Function): void;
+ /**
+ * Raised after an asynchronous postback is finished and control has been returned to the browser.
+ * @param endRequestHandler
+ * The name of the handler method that will be called.
+ */
+ add_endRequest(endRequestHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised after an asynchronous postback is finished and control has been returned to the browser.
+ * @param endRequestHandler
+ * The name of the handler method that will be removed.
+ */
+ remove_endRequest(endRequestHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised during the initialization of the asynchronous postback.
+ * @param initializeRequestHandler
+ * The name of the handler method that will be called.
+ */
+ add_initializeRequest(initializeRequestHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised during the initialization of the asynchronous postback.
+ * @param initializeRequestHandler
+ * The name of the handler method that will be called.
+ */
+ remove_initializeRequest(initializeRequestHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised after all content on the page is refreshed as a result of either a synchronous or an asynchronous postback.
+ * @param pageLoadedHandler
+ * The name of the handler method that will be called.
+ */
+ add_pageLoaded(pageLoadedHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised after all content on the page is refreshed as a result of either a synchronous or an asynchronous postback.
+ * @param pageLoadedHandler
+ * The name of the handler method that will be called.
+ */
+ remove_pageLoaded(pageLoadedHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised after the response from the server to an asynchronous postback is received but before any content on the page is updated.
+ * @param pageLoadedHandler
+ * The name of the handler method that will be called.
+ */
+ add_pageLoading(pageLoadingHandler: (sender: any, args: any) => void): void;
+ /**
+ * Raised after the response from the server to an asynchronous postback is received but before any content on the page is updated.
+ * @param pageLoadedHandler
+ * The name of the handler method that will be called.
+ */
+ remove_pageLoading(pageLoadingHandler: (sender: any, args: any) => void): void;
+
+ //#endregion
+
+ //#region Methods
+
+ /**
+ * Returns the instance of the PageRequestManager class for the page.
+ * @return The current instance of the PageRequestManager class. You do not create a new instance of the PageRequestManager class directly. Instead, an instance is available when partial-page rendering is enabled.
+ */
+ static getInstance(): PageRequestManager;
+
+ /**
+ * Stops all updates that would occur as a result of an asynchronous postback.
+ * The abortPostBack method stops the currently executing postback. To cancel a new postback, provide an event handler for the initializeRequest event and use the cancel event of the Sys.CancelEventArgs class.
+ */
+ abortPostBack(): void;
+
+ /**
+ * Begins an asynchronous postback.
+ * @param updatePanelsToUpdate
+ * (Optional) An array of UniqueID values or ClientID values for UpdatePanel controls that must be re-rendered.
+ * @param eventTarget
+ * (Optional) A string that contains the target of the event.
+ * @param eventArgument
+ * (Optional) A string that contains an argument for the event.
+ * @param causesValidation
+ * (Optional) true to cause validation.
+ * @param validationGroup
+ * (Optional) A string that contains the name of the validation group.
+ */
+ beginAsyncPostBack(updatePanelsToUpdate?: string[], eventTarget?: string, eventArgument?: string, causesValidation?: boolean, validationGroup?: string): void;
+
+ /**
+ * Releases ECMAScript (JavaScript) resources and detaches events.
+ * the dispose method to free client resources. The PageRequestManager instance calls the dispose method during the window.unload event of the browser.
+ * If you call the dispose method and then reference members of the PageRequestManager class, an error occurs. In typical page developer scenarios, you do not have to call the dispose method.
+ */
+ dispose(): void;
+
+ //#endregion
+
+ //#region Properties
+
+ get_isInAsyncPostBack(): boolean;
+
+ //#endregion
+ }
+
+ //#region Exceptions: Defines exceptions that can occur during partial-page updates.
+
+ /**
+ * Raised when an error occurs while processing the response from the server.
+ * 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 {@link http://msdn.microsoft.com/en-us/library/bb397466(v=vs.100).aspx}
+ */
+ class PageRequestManagerParserErrorException {
+ // Nothing to define
+ }
+
+ /**
+ * Raised when an error occurs on the server.
+ * 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.
+ * @see {@link http://msdn.microsoft.com/en-us/library/bb397466(v=vs.100).aspx} *
+ */
+ class PageRequestManagerServerErrorException {
+ // Nothing to define
+ }
+
+ /**
+ * Raised when the request times out.
+ * 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.
+ * @see {@link http://msdn.microsoft.com/en-us/library/bb397466(v=vs.100).aspx}
+ */
+ class PageRequestManagerTimeoutException {
+ // Nothing to define
+ }
+
+ //#endregion
+
+ }
+
+ //#endregion
+
+}
+
+//#endregion