The calling procedure for Ajax in the. NET ADF.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.