WebServiceProxy.aspx 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <%@ Page Language="C#" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <script runat="server">
  4. </script>
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head id="Head1" runat="server">
  7. <style type="text/css">
  8. body { font: 11pt Trebuchet MS;
  9. font-color: #000000;
  10. padding-top: 72px;
  11. text-align: center }
  12. .text { font: 8pt Trebuchet MS }
  13. </style>
  14. <title>Web Service Proxy</title>
  15. </head>
  16. <body>
  17. <h2>WebServiceProxy Example</h2>
  18. <form id="form1" runat="server">
  19. <asp:ScriptManager runat="server" ID="scriptManager">
  20. <Scripts>
  21. <asp:ScriptReference Path="WebServiceProxy.js" />
  22. </Scripts>
  23. </asp:ScriptManager>
  24. <table style="font-size:12px">
  25. <tr>
  26. <td>Select Web Service and Method:</td>
  27. <td>
  28. <select id="SelectionId"
  29. onchange="OnSelectMethod(); return false;">
  30. <option value="WebService.asmx" selected>GetServerTime</option>
  31. <option value="WebService.asmx">GetGreetings</option>
  32. <option value="WebService.asmx">PostGreetings</option>
  33. </select>
  34. </td>
  35. </tr>
  36. </table>
  37. <hr />
  38. <!-- Display results. -->
  39. <p>
  40. <span style="background-color:Aqua" id="ResultId"></span>
  41. </p>
  42. </form>
  43. </body>
  44. </html>