Author: vaibhavgangal | Posted on: 10/28/2008 11:18:32 PM | Views : 311

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
Imp ...

Go to the complete details ...