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

#1 G_rose42  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 50
  • 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">
     <Services>
          <asp:ServiceReference Path="../Service/WebService.asmx" />
         </Services>
</asp:ScriptManager>


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">
        <Services>
            <asp:ServiceReference Path="../Service/WebService.asmx" />           
        </Services>
    </ajax:ToolkitScriptManager>


Is This A Good Question/Topic? 0
  • +

Page 1 of 1