well, I had a real good look at the code,
I wrote an IJavascriptConverter,
basicly I want to take a class (say C ) that has (say 10) properties
named Prop1 .. Prop10
and nstead of haveing it derialized as:
{"__type"=....,"Prop1":"v1","Prop2":"v2"......"Prop10":"v10"}
I want it to serialize as
new C("v1","v2",...."v10")
and use the GetClientScript method to return a constructor,
this was I get typed objects but without the overhead of thair keys.
this is all because what I actually want to serialize is a second class
which is an IEnumerable<C>.
now matter what I did I just can't seem to have it running.
I added the converters class and assembly into the jsonConverters
section of the web.config,
but it just does not seem to help.
do I need to do anything else ?
does the IEnumerableConverter call custom converters registered for the
types it enumarates ?
I have only implementer the SerializableTypes,GetClientScript and
Serialize. Should this be a problem ?
(assuming I don't want to send "C"'s back to the server ?
How can I go on debugging this ?
Any help would be appriciated.
Eyal Peleg
Detecting and fixing client side JavaScript errors and bugs
http://JSBugHunter.com
b.t.w. - is there a way to tell the google groups mechnism once and
forever to show me an english UI and not a dutch one ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---