You can pass a datarow as an object that has the columns as properties
and the values as the corresponding values of the columns.

Ex: {colA:valA, colB:valB}

the only change to serializer is (the changes for an enum is simples):

For dataRowConverter:

// ...

sb.Append ("{");

        foreach (DataColumn column in row.Table.Columns)
        {
                if (b){ b = false; }
                else { sb.Append (","); }

                sb.Append (string.Format ("{0}:{1}", 
JavaScriptSerializer.Serialize
(column.ColumnName), JavaScriptSerializer.Serialize (row [column])));
        }

        sb.Append ("}");

return sb.ToString ();

Its all, please have in mind for the next version of the
datarowconverter in the ajax library, and with an enum converter.

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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to