asp.net mvc uses asp.net ajax to access WebService asynchronously

Source: Internet
Author: User

Friends who have used asp.net ajax know how to access WebService via ASP.net ajax in the client, but there is no big difference in asp.net mvc using asp.net ajax asynchronous access WebService.

Using ASP.net ajax access WebService in a asp.net application is often a way to introduce WebService to generate client proxies via Scriptmananger, and you can also use Microsoft Ajax Library to complete. This article describes the use of ASP.net ajax asynchronous access WebService in asp.net mvc (ScriptManager and Microsoft Ajax Library two ways).

1. Preparatory work

New asp.net MVC application, if it is Microsoft asp.net mvc CodePlex Preview 5 new MVC application will automatically introduce Microsoft Ajax Library, the following screenshot:

Create an AJAX catalog in the views file directory in the newly created ASP.net MVC Application project, and add a new asp.net mvc page ajaxpage.aspx inside. The following figure:

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.