[EMAIL PROTECTED] schrieb:
> The Rows[0].NameOfYourField worked. However, the second one did not.
> The error message said 'Columns is not defined.'.
Did you use the Columns-Array of your DataTable?
var dt = res.values.Tables[0];
var val = dt.Rows[0][dt.Columns[0].Name];
> Where can I Find documentation on JSON? I check http://www.json.org/
> but did not find any thing that pertains to DataTable.
JSON is a JavaScript Object Notation ... nothing special for .NET, or
specfic types and classes. May i expressed me not right.
Ajax.NET Pro converts Server-Side Objects with the JSON Syntax to
JavaScript Objects. So it also converts the System.Data.DataTable to a
JavaScript Object with the JSON Syntax. So that it looks like the .NET
DataTable, but with many exceptions and neither the full functionality.
Also Ajax.NET do something Special to DataTables to minimize the data
amount for the transfer, so that the final DataTable is created on the
client.
With a JavaScript Debugger you can look at the structure of the response
object and the response.value object.
--
Freundliche Grüße
Albert Weinert
http://der-albert.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---