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

News

Please goy buy 3-4 copies of my book on MonoTouch titled "Professional Android Programming with Mono for Android for .NET/C# Developers." They make great gifts all year round. Plus, I get about $.25 when you buy a copy.

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? iPhone, Android, MonoTouch, MonoDroid, Mobile, HTML5, .NET, ADO.NET, ASP.NET, AJAX, jQuery, jQuery Mobile, ASP.NET AJAX, and Windows Azure............follow me on twitter at Wally

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
2006 - Wallace B. McClure
Powered by Community Server (Non-Commercial Edition), by Telligent Systems