such as
// c# code
[AjaxPro.AjaxMethod]
public string Hello1()
{
   return "hello1";
}
[AjaxPro.AjaxMethod]
public string Hello2()
{
  return "hello2";
}

//javascript code
function jshello()
{
   [Namespace].[ClassName].Hello1(hello1_callback);
   [Namespace].[ClassName].Hello2(hello2_callback);
}
function hello1_callback(res1)
{
   alert(res1.value);
}
function hello2_callback(res2)
{
   alert(res2.value);
}

//html code
<input type="button" onclick="jshello();" value="hello">

when i click hello button ,i only get one alert with "hello2".if i
change the order of ajax fucntion call in jshello() function ,suchas
function jshello()
{
  [Namespace].[ClassName].Hello2(hello2_callback);
  [Namespace].[ClassName].Hello1(hello1_callback);
}
i got "hello1" alert;
why?


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