Hi
 
I m Shaheed....... From UK.... London... I signed in ur group by mistake .. Don't know any of this programing  things..... I just want to open a google eami....... But seems like UK is not in list to open email account...... So I need an invitation from any user to open an account..... Could u plz help me with that?
 
Thanks........
 
Shaheed 
 
-------Original Message-------
 
From: epeleg
Date: 05/15/06 08:08:04
Subject: [ajaxpro] Converters again
 
Hi,
being new to AJAX.NET I spent some time reading both the NG and the
Blog,
and looking at transfered code/data on the AJAX requests.
 
The first thing I noticed was the issue of the size of sent data when
serializing collections of objects (just as so clearly explained
described in "Ajax.NET Converters - Why?" -
 
The problem Is that I can not find a ""Ajax.NET Converters - How ?".
 
I seem to be missing some basic info on how converters are used by the
framework.
 
For example:
When I try and return a System.Resources.ResourceSet as the return type
of an [AjaxPro.AjaxMethod] taged method it seems to return just fine.
But I wanted to combine two values (the former and a new one) and
return what I would want to be available on the client side as a simple
{"resources":...,"whatever":...} and I tried to do that by using on the
server side some code like:
 
    [AjaxPro.AjaxMethod]
    public AjaxPro._javascript_Object AllInfo() {
        AjaxPro._javascript_Object JSO = new AjaxPro._javascript_Object();
        JSO.Add("resources", GetResources());
        JSO.Add("whatever", GetSomeStuff());
        return JSO;
    }
 
(again - both GetResources() and GetSomeStuff() work fine as return
types)
when debugging the server side and looking at JSO just before it is
returned it apears to have been properly serialized but when the result
is returned to the client side
I get a serialized System.InvalidCastException with the message "Unable
to cast object of type 'System.Resources.RuntimeResourceSet' to type
'AjaxPro.IJavaScriptObject'.".
 
so:
1) assuming I have a few objects that each can be returned properly
what is the recommanded way to shrink-wrap them on the server side to
get a keyed object on the _javascript_ client side ?
 
2) Is there a complete example of a converter (used to do custom
serialization/deserialization of .Net objects to _javascript_) ?
 
3) does a converter HAVE TO support both ways ? (in some cases you know
there are objects/collections that you want to send only from .Net to
JS or the other way around)
 
4) how is AjaxPro.IJavaScriptConverter.GetClientScript() : String being
used by the framework ?
 
I guess I could go on, but If I will get answers to those I will be
sattisfied for now.
 
Thanks,
Eyal
 
 
 

FREE emoticons for your email! click Here!
--~--~---------~--~----~------------~-------~--~----~
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