What's wrong with this?  What would you like to change?

On 7/11/06, RoyLee <[EMAIL PROTECTED]> wrote:

it is strange to bind Web App, Web servers and AjaxPro. The work was
done resently in my project.

There is a Web servers:

       public class Service1 : System.Web.Services.WebService
       {
                       public string myData;
                       ....

and a server method:
               [WebMethod]
               public string HelloWorld()
               {
                       return  myData;
               }

"myData" is very important, and should change every second. So I let
the client get the data directly.
               [AjaxPro.AjaxMethod]
               public string GetData()
               {
                       return myData;
               }
then I call the method on the clint side:
       function GetServerData()
       {
               TestAjax_Webserver.Service1.GetData(GetServerData_callback);
       }

It works! Very lucky.

But it seems ugly. someone can change my program?






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