You can use following code instead:
var o = new Object();
o.name = "foo";
o.type = "bar";
o.number = 7.63;
AjaxClass.AjaxMethodX( o, mycallback );
On the server-side code use:
[AjaxMethod]
public static string AjaxMethodX(JavaScriptObject ht)
{
return ht["name"].Value;
}
Regards,
Michael
On 7/11/06, eLad <[EMAIL PROTECTED]> wrote:
>
> Ok,
> That's great, thanks.
>
> I just want to pass an object {name:"foo",type:"bar",number:7.62} and
> read it as a Hashtable or so (o["name"].ToString()=="foo" /
> ((double)o["number"])==7.62D). Is it possible anyhow?
> Meanwhile I pass an Ajax.Web.DataSet.
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---