Hi,

without the using of an out parameter it is only possible to return
ONE value, but this can be any kind of object or a list of objects
(array),...

So, what do you want to? If you call GetTable (which is you
AjaxMethod, I hope) you have 2 arguments, in C# it will look like
this:

    public static string GetTable(string a, string b)
    {
        // ...
        return "Hello";
    }

In the JavaScript callback you will get the string "Hello" as the
first argument for your callback function, that's all. If you return
an array (i.e. "return [1,2,3,4]") in JavaScript you can use
res.value[0] to get the first value (here 1).

Please post you server-side AjaxMethod source code...!

Regards,
Michael




On 6/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I want send a parameter to my async call like this:
>
> calendar.WebForm1.GetTable(proj.options[proj.selectedIndex].value,box.options[box.selectedIndex].value,
>  do_tableCallBack(parameter))
>
> and callbact like this:
> function do_tableCallBack(res, parameter)
> {
>        // ...some work
> }
>
> But when I send parameter in such way, I get in callback only 1 value:
> value of parameter variable in res variable, second parameter is
> undefined.
> I look throught avaible souce code and samples but don't find the
> answer.
>
>
> >
>


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

Reply via email to