asp.net – 如何从javascript调用Web服务方法?

前端之家收集整理的这篇文章主要介绍了asp.net – 如何从javascript调用Web服务方法?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有没有办法从 JavaScript调用Web服务?我知道你可以添加一个脚本管理器来引入Web服务,但是一旦我完成了,我就无法弄清楚如何从javascript访问这些函数.

谢谢,
马特

@R_301_323@

请参阅 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
<asp:ServiceReference> element is
included under the
<asp:ScriptManager> control in the page.

猜你在找的asp.Net相关文章