M
Mike
Hi. I'll try to explain this as best as possible. I have a script-callable
webservice that returns a string. I am trying to simply load a page and then
document.write the return result from a webservice called a service
reference. Currently I have to click a button on the page and fire an
onclick event to execute the webmethod. I need the webservice to execute when
the page loads (not when I click the button) and I need the string return
result to document.write on the page.
Here's what I have. Now how do I make this happen automatically?
<form id="form1" runat="server">
<asp:ScriptManager runat="server" ID="scriptManagerId">
<Scripts>
<asp:ScriptReference Path="CallWebServiceMethods.js" />
</Scripts>
<Services>
<asp:ServiceReference Path="VideoService.asmx" />
</Services>
</asp:ScriptManager>
<input type="button" onclick="Add('x');" />
</form>
Thanks! Mike
webservice that returns a string. I am trying to simply load a page and then
document.write the return result from a webservice called a service
reference. Currently I have to click a button on the page and fire an
onclick event to execute the webmethod. I need the webservice to execute when
the page loads (not when I click the button) and I need the string return
result to document.write on the page.
Here's what I have. Now how do I make this happen automatically?
<form id="form1" runat="server">
<asp:ScriptManager runat="server" ID="scriptManagerId">
<Scripts>
<asp:ScriptReference Path="CallWebServiceMethods.js" />
</Scripts>
<Services>
<asp:ServiceReference Path="VideoService.asmx" />
</Services>
</asp:ScriptManager>
<input type="button" onclick="Add('x');" />
</form>
Thanks! Mike