AJAX function (webmethod) call question

D

dgk

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?
 
F

Fred Chateau

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top