Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Microsoft JScript runtime error: 'WebService' is undefined ??

$
0
0

Hey all, ive been using CTP Atlas for a while, and im tying to upgrade some of my code to beta 1..

but im getting: Microsoft JScript runtime error: 'WebService' is undefined

New project > Ajax Enabled Website

WebService.asmx.js
function test()
{
    WebService.HelloWorld();
}

WebService.asmx
[WebMethod]
public void HelloWorld()
{
    string test=  "Hello World";  //added a breakpoint here to catch the call
}

Default.aspx
<asp:ScriptManager ID="ScriptManager1" runat="server">
    <Services>
       <asp:ServiceReference Path="WebService.asmx" />
    </Services>
    <Scripts>
 <asp:ScriptReference Path="WebService.asmx.js" />
    </Scripts>
</asp:ScriptManager>
<div>
     <button type=button onclick="test();" >hahaha</button>
</div>

 

thats the basics ive done, now it should work..... but it doesnt :-(

Any idea waht im doing wrong?? Cheers guys!

 

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>