Hi,
I have found a problem when using your code. I will publish an updated
version in a couple of hourse. Thank you for your feedback!
Regards,
Michael
On 7/10/06, eLad <[EMAIL PROTECTED]> wrote:
>
> I have tried to do so by:
>
> var dic=new Ajax.Web.Dictionary();
> dic.add("x",1.2);
>
> alert(SomeServerMethod(dic).value);
>
>
> // server side
>
> public bool
> SomeServerMethod(Dictionary<IJavaScriptObject,IJavaScriptObject> o){
> return true;
> }
>
> but on every call i get
>
> Message Object reference not set to an instance of an object.
>
> Type System.NullReferenceException
>
> Stack
> at AjaxPro.JavaScriptDeserializer.Deserialize(IJavaScriptObject o,
> Type type)
> at AjaxPro.XmlHttpRequestProcessor.RetreiveParameters()
> at AjaxPro.AjaxProcHelper.Run()
> TargetSite System.Object Deserialize(AjaxPro.IJavaScriptObject,
> System.Type)
>
> Source AjaxPro.2
>
> How can i send such a dictionary?
>
> Thanks!
>
>
> >
>
--
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
-~----------~----~----~----~------~----~------~--~---