What you want to do is not possible currently. There is a workaround for this:

public struct MyStruct
{
    public string Var1;
    public DataSet Var2;
}

[AjaxMethod]
public static return MyStruct()
{
    MyStruct s = new MyStruct();
    s.Var1 = "hhhh";
    s.Var2 = getData();
    return s;
}

Regards,
Michael



On 9/29/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:
> Sorry, no, it is working as you have used it...
>
>
>
> On 9/29/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > ah, sorry, yes, this is the correct syntax.
> >
> > On the client? There you will get something similar to the .NET DataSet:
> >  o.Tables[0].Rows[0].ColumnName
> >
> > Regards,
> > Michael
> >
> >
> >
> > On 9/29/06, russell <[EMAIL PROTECTED]> wrote:
> > >
> > > I had modified into this:
> > >
> > > jsObj.Add("Data", new
> > > AjaxPro.JavaScriptString(AjaxPro.JavaScriptSerializer.Serialize(getData())));
> > >
> > > But how can I desirialize it on the client?
> > >
> > >
> > > > > >
> > >
> >
> >
> > --
> > 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/
> >
> > Skype: callto:schwarz-interactive
> > MSN IM: [EMAIL PROTECTED]
> >
>
>
> --
> 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/
>
> Skype: callto:schwarz-interactive
> MSN IM: [EMAIL PROTECTED]
>


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

Skype: callto:schwarz-interactive
MSN IM: [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/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to