Just got that to work by using eval expression in a callback function
as follows:

function MyCallBack(response)
{
       // var obj = response.value; <--- incorrect use, returns a
string
        eval("var obj = " + response.value + ";"); <-- correct
        alert(obj.Name);
}

Is this a proper way of using a json return string?
In a server method, I serialize into json string with my custom
converter class.
But I would prefer to just return my object. I guess I have to also
override GetClientScript() method for that?

Thanks,
Dima


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