I did a change in AjaxPro.Utility.AddDefaultConverter(AjaxSettings
settings) to make IDictionary serialization work for me;
The only thing I did was to swap the position of these two lines,
adding IDictionaryConverter before IListConverter.

AddConverter(settings, new IDictionaryConverter());
AddConverter(settings, new IListConverter());

The problem was that the dictionary Listconverter was used instead of
the dictionary because the following check is true for both:

IJavaScriptConverter.TryDeserializeValue(IJavaScriptObject jso, Type t,
out object o)
...
if (m_deserializableTypes[i].IsAssignableFrom(t))
...

This works for me, and I don't know if anybody else had any problems
with this.


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

Reply via email to