B
barry
I have created a web service on my local machine and left if alone
(HelloWorld) (vb.net)
Below is the code for the declarative portion:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="WebService.asmx"
/>
</Services>
</asp:ScriptManager>
<div>
<input id="Button1" onclick="GetMe()" type="button"
value="button" />
</div>
</form>
Following is the code for the javascript and the onclick
<script type="text/javascript">
function GetMe()
{
alert(WebService.HelloWorld());
}
</script>
When I run this program it aborts with the message WebService is undefined.
Would like some advice as to what is missing.
thanks
(HelloWorld) (vb.net)
Below is the code for the declarative portion:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="WebService.asmx"
/>
</Services>
</asp:ScriptManager>
<div>
<input id="Button1" onclick="GetMe()" type="button"
value="button" />
</div>
</form>
Following is the code for the javascript and the onclick
<script type="text/javascript">
function GetMe()
{
alert(WebService.HelloWorld());
}
</script>
When I run this program it aborts with the message WebService is undefined.
Would like some advice as to what is missing.
thanks