<%@ Page="" Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <script language="JavaScript" type="text/javascript"> function loadService() { try { webServiceCaller.useService("http://localhost/WebService1/Service1.asmx", "Service1"); } catch (e) { alert(e); } } function handleResult(result) { if (!result.error) { alert("Success! Result: " + result.value); } else { alert("Failed! Error: " + result.errorDetail.string); } } function myMethodAsync() { callID = webServiceCaller.MyService.callService(handleResult, "GetSum", "Asynchronous Call"); } </script> </head> <body id="webServiceCaller" style="behavior:url(webservice.htc)"> <form id="form1" runat="server"> <div> <button id="callAsynch" önclick="myMethodAsync()">Call Asynchronously</button> </div> </form> </body> </html>
<big style="font-size: 2em;">ö</big>nclick=“myMethodAsync()”
<big style="font-size: 2em;">o</big>nclick="myMethodAsync()"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)