只能从脚本中调用在类定义上有[ScriptService]属性的Web服务问题的解决方案
时间:2016-05-17 19:41:58
收藏:0
阅读:2000
ajax调用webservice中的接口时, 会出现[只能从脚本中调用在类定义上有[ScriptService]属性的...]的异常.
这是因为, 在.net3.5中, 访问web服务, 要对web服务添加修饰:
[System.Web.Script.Services.ScriptService]
原文:http://www.cnblogs.com/jiyang2008/p/5502640.html
评论(0)