Three Ways to Consume Web Services with AJAX
page 4 of 9
by Xianzhong Zhu
Feedback
Average Rating: 
Views (Total / Last 10 Days): 57631/ 142

The AjaxPro.NET based approach

Thanks to Microsoft we can easily access a web service from inside an ASP.NET 2.0 framework. So, we can first invoke web services in the methods inside an ASP.NET 2.0 page and in turn call these methods via the open-source Ajax frameworkAjaxPro.NET. Figure 2 gives you a more illustrative explanation.

Figure 2: Call Web Services via AjaxPro.NET framework

Now, let us take a further look at the famous framework.


View Entire Article

User Comments

Title: Sr. Web Developer   
Name: Nelson Xu
Date: 2008-09-04 11:20:30 AM
Comment:
Hi Xianzhong,
I reall enjoy your article and code sample.
The reason that "Undefined" appears is because you have () for OnSuccess when you call Web service.

SumServiceSpace.SumService.GetSum(
eval(form1.TextBoxA.value),
eval(form1.TextBoxB.value),
OnSuccess());

Message will go away if you remove () after OnSuccess.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-10-06 10:23:28 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search