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!