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!


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