AJAX function (webmethod) call question

Discussion in 'ASP .Net' started by dgk, Aug 1, 2007.

  1. dgk

    dgk Guest

    Calling a simple webmethod from a page with the scriptmanager works
    like this:

    ret = SimpleService.SayHello(document.getElementById('Text1').value,
    OnComplete, OnTimeOut, OnError);

    The first parameter is the one expected by the function, and the rest
    are callbacks. What is the format for calling a method that takes more
    than one parameter?
    dgk, Aug 1, 2007
    #1
    1. Advertising

  2. dgk

    Fred Chateau Guest

    I don't know how to do it, but I'm guessing that you would want to use a
    JSON object. You could pass your parameters as properties.

    --
    Regards,

    Fred Chateau
    fchateauAtComcastDotNet

    "dgk" <> wrote in message
    news:...
    > Calling a simple webmethod from a page with the scriptmanager works
    > like this:
    >
    > ret = SimpleService.SayHello(document.getElementById('Text1').value,
    > OnComplete, OnTimeOut, OnError);
    >
    > The first parameter is the one expected by the function, and the rest
    > are callbacks. What is the format for calling a method that takes more
    > than one parameter?
    Fred Chateau, Aug 3, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. germ
    Replies:
    0
    Views:
    1,284
  2. Replies:
    2
    Views:
    842
  3. Replies:
    4
    Views:
    2,392
    DSK Chakravarthy
    Mar 14, 2008
  4. daokfella
    Replies:
    1
    Views:
    1,558
    bruce barker
    Apr 26, 2008
  5. Rory Becker
    Replies:
    8
    Views:
    701
    Steven Cheng [MSFT]
    Aug 4, 2008
Loading...

Share This Page