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... Is true that DataTable and DataSet are serializable but DataRow not, but in the design and the code this must not be a limit more when in the last version of Ajax this was already implemented. DataRow is the form to see one row not a table with the complex relations, is only an name value array (the name reference is the most important part). Of course the SQL that generated the row must be well designed to this. If this will not be implemented you must in the code every time that uses one single simple easy atomic row transform and retransform to get the result, the one single simple easy atomic row.with name references. Please support it, remember one change in the AJAX Library could be a change in million of lines of source over this library if the change like in this case is too simple. 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/ Don't forget to read my blog at http://weblogs.asp.net/mschwarz/ -~----------~----~----~----~------~----~------~--~---
