February 2010
Beginner
400 pages
11h 13m
English
Of course, when you are binding to data, you usually want to retrieve it from an external source. The DataView control allows you to easily accomplish this and bind to many different types of services, for example:
ASMX web service
WCF web services
WCF Data Services
ASP.NET MVC controller actions
JSONP service
Basically anything that returns JSON-formatted data
You will now use client templates to bind to ASMX and WCF web services.
First bind to the web service:
Add a new class called Person to the project, and enter the following class definition:
public class Person
{
public string Name { get; set; }
public string Age { get; set; }
}
Add a new .asmx web service to the project ...