Hi,
VS2005, .net fmw 2.0
I am not able to call webservice method from javascript.
First it gave GetJobs is undefined error. Then I added namespace to it as I am having web application project and not web site.
Now it gives nsGetjobs is undefined error.
Please let me know what I am missing.
Following is my code.
........
setInterval("nsGetjobs.GetJobs.cBindGrid(updateGrid)", 10000);
........
<asp:ScriptManager ID="sc1" runat="server">
<Services>
<asp:ServiceReference Path="GetJobs.asmx" />
</Services>
</asp:ScriptManager>
.......
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports System.Web.Script.Services
Namespace nsGetjobs
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
<ScriptService()> _
Public Class GetJobs
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function cBindGrid(ByVal s_param As String) As List(Of GridJobs)
.....
Thanks & Regards,
Vaibhav