Isnt this already done for you? in .NET you can pass a dataset back in
the return function and have it loop through using column names

like so

function callback(res)
{
if(res != null && res.value != null && res.value.Tables != 0 &&
res.value.Tables.length == 1)
        {
        qtCount = res.value.Tables[0].Rows.length;


        for(var i=0; i<res.value.Tables[0].Rows.length; i++)
        {
                puTime = res.value.Tables[0].Rows[i].PickUpTime;
                delTime = res.value.Tables[0].Rows[i].DeliverTime;
                noTrip = res.value.Tables[0].Rows[i].NoTrip;
                dbRowId = res.value.Tables[0].Rows[i].ID;
                courier = res.value.Tables[0].Rows[i].CourierAssigned;
                itmClass = "lineitem";
        } 



}                       


        }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to