default.aspx 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head id="Head1" runat="server">
  5. <title>Using Generated Proxy Types</title>
  6. <style type="text/css">
  7. body { font: 11pt Trebuchet MS;
  8. font-color: #000000;
  9. padding-top: 72px;
  10. text-align: center }
  11. .text { font: 10pt Trebuchet MS; text-align: center }
  12. </style>
  13. </head>
  14. <body>
  15. <h2>Using Generated Proxy Types</h2>
  16. <form id="form1" runat="server">
  17. <asp:ScriptManager runat="server" ID="scriptManager">
  18. <Services>
  19. <asp:ServiceReference Path="ServerTypes.asmx" />
  20. </Services>
  21. <Scripts>
  22. <asp:ScriptReference Path="ServerTypes.js" />
  23. </Scripts>
  24. </asp:ScriptManager>
  25. </form>
  26. <center>
  27. <table style="font-size:12px;" >
  28. <tr align="left">
  29. <td class="text">Get Enum:</td>
  30. <td>
  31. <button id="Button2"
  32. onclick="GetSelectedEnumValue()">Get Enum Value</button>
  33. </td>
  34. </tr>
  35. <tr align="left">
  36. <td class="text">Pass Enum:</td>
  37. <td>
  38. <button id="Button1"
  39. onclick="GetFirstEnumElement()">First Enum</button>
  40. </td>
  41. </tr>
  42. </table>
  43. </center>
  44. <hr />
  45. <!-- Display current color object. -->
  46. <span id="ResultId"></span>
  47. </body>
  48. </html>