Hi,

I prefer to create own classes or maybe structs that are used only for
Ajax.NET to exchange data between server and client and back. For this
it would be the best to have only the properties you want to have. The
__type property will tell the framework which type it should create.

See the example page at http://ajaxpro.info/Examples/Classes/default.aspx.

Regards,
Michael



On 5/3/06, Moskie <[EMAIL PROTECTED]> wrote:
>
> So if I modify the __type attribute of a javascript object, AjaxPro
> will notice that and treat it as the type I specify? Then I'm allowed
> to pass it as that type to an AjaxMethod? That's pretty much all I'm
> looking for. I'm assuming that myAjaxFunction there accepts one
> parameter of type MyClass, correct?
>
> Also, does my class need to implement a template and/or be made
> serializable? I've gone through all that, but I'm not sure what the
> definitive thing I need to do in this situation is...
>
> Thanks for the info.
>
>
> >
>


--
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/
mailto:[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
-~----------~----~----~----~------~----~------~--~---

Reply via email to