Hi,
the easiest way is to simple return your object:
[AjaxPro.AjaxMethod()]
public MyClass AjaxLoadMyClass(int pk)
{
MyClass obj = new MyClass();
obj.Load(pk);
return obj;
}
Are you sure the object is "loaded" correctly? What is if you step
through your code?
Regards,
Michael
On 10/3/06, dimkaspb <[EMAIL PROTECTED]> wrote:
>
> Michael, thank you for a reply.
> I do have child objects (collections) in my class which are
> instantiated but not populated unless I explicitely do so.
>
> Also, I am new to working with JSON and returning a json string is
> something I came across in one of the examples. I could not find many
> other samples. How would I return a JSON object itself?
>
> Thanks,
> 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/
-~----------~----~----~----~------~----~------~--~---