This is the idea: You can have an array with associated names as references to your values, for example: var myArray = new Array (); myArray ["User.ID"] = 1; myArray ["ID"] = 2; myArray ["anystring"] = "Hi";
and you can use it: alert (myArray ["User.ID"]); and the result is: 1 This works before with AJAX version 5.x, a DataRow was returned in the client as an array like in the previous example. Then you can address the elements of the array with the name of the elements of the query. Now in 6.x version this array is only a common array, you use something like: myArray [0] instance of myArray ["User.ID"] In fact the result is the same with integer index; but the design of the code is very affected with the order of the elements and the flexibility is destroyed, if you add one field all fails... Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
