Albert Weinert wrote:
> Tim schrieb:
>
> > Is there a configurable way to prevent the JSON
> > JavaScriptSerializer.Serialize(obj) method from outputting the '_type'
> > properties.   I don't need them on the clientside and I'd like to
> > minimize the amount of data being sent.
>
> [AjaxNoTypeUsageAttribute]
> public YourClass
> {
>       [...]
>

The problem with this approach is that
1) It requires that you have access to the source defining the class.
2) Don't have a ton of classes to update.
3) Have the ability/desire to include the AjaxPro DLL with the solution
containing the class.

At this point, I'm going to play with adding the custom converter
mentioned previously.

Thanks,
Tim


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