ScriptService属性和WebMethod属性的含义。 [英] what is meant by ScriptService attribute and WebMethod attribute.

查看:68
本文介绍了ScriptService属性和WebMethod属性的含义。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以简要解释ScriptService属性和WebMethod属性的含义。

我需要使用AJAX调用方法。

Can anyone Pls explain in short what is meant by ScriptService attribute and WebMethod attribute.
I need to call a method using AJAX.

推荐答案

在项目中添加一个新项目,选择Web Service,您将看到有关ScriptService的评论。这是你班上的一个属性。那里还会有一个虚拟的WebMethod。



然后告诉我们你是否需要具体的东西。
Add a new item in your project, choose Web Service and you''ll see a comment about ScriptService. It''s an attribute on your class. There will also be a dummy WebMethod in there.

Then let us know if there is something specific you need.


< a href =http://msdn.microsoft.com/en-us/library/system.web.script.services.scriptmethodattribute.aspx> http://msdn.microsoft.com/en-us/library/system .web.script.services.scriptmethodattribute.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/system.web.services.webmethodattribute.aspx [ ^ ]


这篇关于ScriptService属性和WebMethod属性的含义。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆