The diagram is a shorthand procedure for the. NET ADF Ajax call Process:
When the page is initialized, once the browser triggers the callback event, the script function handles the callback information and calls the Webform_docallback function in ASP. 2.0/3.5 to return the callback request to the server. The essence is to use the Microsoft.XMLHTTP component to create a new HttpRequest object and send the client request back to the server asynchronously.
3) After the client callback request arrives, the server initializes and invokes the ADF component that inherits the ICallbackEventHandler interface or the page's RaiseCallbackEvent () method to get the callback request string. and further processed. And the results of different components are deposited into the Callbackresults object, and the processing result is returned by GetCallbackResult ().
4) The Processcallbackresult method is provided in the ADF Callback framework to handle callback responses returned to the client. In. NET ADF applications, developers generally do not have to write Processcallbackresult functions to handle the results returned by the server, and the. NET ADF Framework program has been written. Of course, if the developer needs a unique response, you can write your own handler function and call Processcallbackresult in the handler function.
The calling procedure for Ajax in the. NET ADF.