0 Replies - 5739 Views - Last Post: 28 November 2012 - 11:20 PM Rate Topic: -----

#1 G_rose42   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 53
  • Joined: 15-December 10

Webservice error while accessing from clientside javascript in asp.net

Posted 28 November 2012 - 11:20 PM

<asp:ScriptManager ID="ScriptManager1" runat="server"  EnablePageMethods="true">
          <asp:ServiceReference Path="../Service/WebService.asmx" />

I used above coding to access functions from WebService.asmx page
i can able to access the function from clientside using javascript but am getting the following error

I got the following Error

Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

Instead of that i used the below coding i didn't get any error but i couldn't able to access the functions from clientside using javascript

<ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            <asp:ServiceReference Path="../Service/WebService.asmx" />           

Is This A Good Question/Topic? 0
  • +

Page 1 of 1