<%@ Page Language="C#" %>
<!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 id="hd">
<title>TR Sample</title>
<atlas:ScriptManager ID="scriptManager" runat="server"
EnablePartialRendering="false"
EnableScriptComponents="false" >
<Services>
<atlas:ServiceReference Path="testService.asmx" GenerateProxy="true"  />
</Services>
<Scripts>
<atlas:ScriptReference Path="AtlasRuntime.js" />
</Scripts>
</atlas:ScriptManager>
<script type="text/javascript">
function callWebService() {
testService.displayTime("request data", handleResponse);
}
function handleResponse(response) {
alert("Server response: " + response);
}
</script></head>
<body>
<form id="frmTR" runat="server">
<div>
<p><input type="button" onclick="callWebService()" value="Call Web Service" /></p>
</div></form></body></html>