I've got a problem with null values in JavaScript arrays ; each time I
try to send JSON containing an array which has null values in it the
response contains the following exception :
{"Message":"Specified method is not
supported.","Type":"System.NotSupportedException"}
This exception is thrown by the method Add of the JavaScriptArray
class, the code of which is :
public override int Add(object value)
                {
                        if (value is IJavaScriptObject)
                                return base.Add(value);

                        throw new NotSupportedException();
                }
So is it meant to be impossible to send back to the server arrays
containing null values, would there be a problem if the code were :
public override int Add(object value)
                {
                        if (value is IJavaScriptObject || value == null)
                                return base.Add(value);

                        throw new NotSupportedException();
                }
or am i missing something else ?


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