Yes, you need to add [System.Web.Script.Services.ScriptService] attibute to the class definition.
Create and Use an AJAX-Enabled Web Service in a Web Site in Visual Studio 2008?
http://msdn.microsoft.com/en-us/vs2008/bb821302.aspx
In this video, Rob Windsor shows you how to create an AJAX-enabled Web service and use its methods from client script running in a separate Web application.
Presented by Rob Windsor on October 23, 2007
Length: 12 minutes 40 seconds
No comments:
Post a Comment