Hi,

you need a default constructor without any arguments. Otherwise you
have to write your own converter (inherit from IJavaScriptConverter).

Regards,
Michael



On 6/30/06, Jim R <[EMAIL PROTECTED]> wrote:
>
> First, thanks for the great library.
>
> Just fyi,
>
> I ran into an issue when trying to pass a custom class back to the
> server. If I override the default constructor to use some parameters
> the class comes back as null to the client. To reproduce you can
> replace this line in the MyAjaxClass.cs in the starter kit:
>
> public MyAjaxClass()
>        {
>        }
>
> with
>
> public MyAjaxClass(string test)
>        {
>        }
>
>  It threw me for a few hours because I am new to the library and
> thought I was doing something wrong (maybe I was).
>
> Thanks again,
> Jim
>
>
> >
>


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