Visual Studio 2008 - Thursday September 13, 2007 - More Wally - Wallace B. McClure
in

MoreWally.com

Giving people what they want, More Wally. This is the technical and personal blog site of
Wallace B. (Wally) McClure.

This Blog

Syndication

Technical Sites

More Wally - Wallace B. McClure

This blog will have all kinds of posts about Wally McClure. In it, there will be tons of .NET and computer programming posts as well as Wally's views on life in general. As you might guess, this site and blog help you get More Wally in your life. What more could anyone want? .NET, ADO.NET, ASP.NET, AJAX, Atlas, Microsoft AJAX Library, ASP.NET 2.0 AJAX Extensions, ............

Visual Studio 2008 - Thursday September 13, 2007

ASP.NET AJAX Futures ListView

If you are playing with the ASP.NETAJAX Futures ListView, one of the things that seems to be missing is an automated mechanism to change the input data to the correct format.  How do you get the returned data to the correct format?  Your OnCompletion method should look something like this:

function OnCompletion(results)
{
var searchResults = $get("DataResults");
var table = Sys.Preview.Data.DataTable.parseFromJson(results);
searchResults.control.set_data(table);
}

Note the call to Sys.Preview.Data.DataTable.parseFromJson();

Comments

No Comments

About wallym

Wallace B. (Wally) McClure INETA Speaker's Bureau Microsoft MVP ASPInsider Co-author of "Beginning AJAX with ASP.NET" Co-author of "Professional ADO.NET Programming" Co-author of "Building Highly Scalable Database Applications with .NET" Master's Degree in Electrical Engineering from Georgia Tech Bachelor's Degree in Electrical Engineering from Georgia Tech
2006 - Wallace B. McClure
Powered by Community Server (Non-Commercial Edition), by Telligent Systems