Hi, I have created a converter for my class and I have a JSON string that I now return back to the client-side. I access it in my callback function as var myObj = response.value, however as expected, it is just a string and I need to turn it into an object somehow to access my property as alert(myObj.FirstName) for example. How can I do that?
Thanks, Dima On Oct 3, 3:23 pm, "Michael Schwarz" <[EMAIL PROTECTED]> wrote: > If it is a "simple" class there is no real need, only if you want to > add some methods on the object that will be available on the > client-side JavaScript. See the DataTable converter which will have > several methods like table.Add. > > Regards, > Michael > > On 10/3/06, dimkaspb <[EMAIL PROTECTED]> wrote: > > > > > I have just tried it with a "simple" object and it worked. > > My other object is in fact fairly complicated with various DB support > > for ORM so I can see why it would reach a stack overflow. > > > In general, what would I use converters for if returning a custom > > (simple) class works fine? > > > Thanks again, > > Dima-- > Best regards | Schöne Grüße > Michael > > Microsoft MVP - Most Valuable Professional > Microsoft MCAD - Certified Application Developer > > http://weblogs.asp.net/mschwarz/http://www.schwarz-interactive.de/ > > Skype: callto:schwarz-interactive > MSN IM: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
