ASP.NET Podcast Show #102 - ASP.NET AJAX Futures Part II - 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, ............

ASP.NET Podcast Show #102 - ASP.NET AJAX Futures Part II

Subscribe <-- All the cool kids are doing it!

Download WMV <--  For PC Users.

Download M4V <--  For iTunes/iPod/Zune Users.

Download MP3 <--  For Audio Only Users.

Show Notes:

function pageLoad() {

WebService.GetValues(1, OnCompletion);

}

function OnCompletion(results)

{

var dataOutput = "";

var divOutput = $get("Output");

var strReturn = "<br />";

var dt = ReturnTable(results.tables[0]);

dataOutput += "DataTable: " + strReturn;

for(m in dt)

{

dataOutput += m + strReturn;

}

var dc = dt.get_columns();

dataOutput += "DataColumn: " + strReturn;

for(m in dc[0])

{

dataOutput += m + strReturn;

}

dataOutput += "Random commands: " + strReturn;

dataOutput += "Columns[0].dataType: " + dc[0].get_dataType() + strReturn;

dataOutput += "Columns[1].dataType: " + dc[1].get_dataType() + strReturn;

dataOutput += "Number of Records: " + dt.get_length() + strReturn;

for(i = 0; i<dt.get_length(); i++)

{

var dcc = dt.getRow(i);

dataOutput += "Row:" + i + " Value:" + dcc.getProperty("Name") + strReturn;

}

var dr = dt.createRow();

dr[0] = "Fred Smith";

dr[1] = 5;

dt.add(dr);

dataOutput += "Number of Records: " + dt.get_length() + strReturn;

divOutput.innerHTML = dataOutput;

var dtTest = new Sys.Preview.Data.DataTable();

var dv = new Sys.Preview.Data.DataView();

 

}

function ReturnTable(dt){

/// <returns type="Sys.Preview.Data.DataTable" />

return Sys.Preview.Data.DataTable.parseFromJson(dt);

}

</script>

<asp:ScriptManager ID="ScriptManager1" runat="server" >

<services>

<asp:servicereference Path="WebService.asmx" />

</services>

<Scripts>

<asp:ScriptReference Name="PreviewScript.js" Assembly="Microsoft.Web.Preview" />

</Scripts>

</asp:ScriptManager>

Intellisense of Data

Warning, Danger Will Robinson, Danger.  This is running against CTP level code which will most likely change.

 

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