How can I call web service methods from javascript?

前端 未结 2 1547
时光取名叫无心
时光取名叫无心 2020-12-18 01:35

Is there any way to call web services from javascript? I know you can add in a script manager to pull in the web services but I can\'t figure out how to access the functions

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-18 02:16

    Please see Calling Web Services from Client Script in ASP.NET AJAX:

    This topic explains how to use to call a Web service from ECMAScript (JavaScript). To enable your application to call ASP.NET AJAX Web services by using client script, the server asynchronous communication layer automatically generates JavaScript proxy classes. A proxy class is generated for each Web service for which an element is included under the control in the page.

提交回复
热议问题