default.aspx 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 Generics 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 Generics Proxy Types</h2>
  16. <form id="form1" runat="server">
  17. <asp:ScriptManager runat="server" ID="scriptManager">
  18. <Services>
  19. <asp:ServiceReference Path="WebService.asmx" />
  20. </Services>
  21. <Scripts>
  22. <asp:ScriptReference Path="generics.js" />
  23. </Scripts>
  24. </asp:ScriptManager>
  25. </form>
  26. <center>
  27. <table style="font-size:12px;" >
  28. <tr align="left">
  29. <td class="text">Generic List:</td>
  30. <td>
  31. <button id="Button1"
  32. onclick="GenericList()">Get List</button>
  33. </td>
  34. </tr>
  35. <tr align="left">
  36. <td class="text">Generic Dictionary:</td>
  37. <td>
  38. <button id="Button2"
  39. onclick="GenericDictionary()">Get Dictionary</button>
  40. </td>
  41. </tr>
  42. <tr align="left">
  43. <td class="text">Generic Custom Type Dictionary:</td>
  44. <td>
  45. <button id="Button3"
  46. onclick="GenericCustomTypeDictionary()">Get Dictionary</button>
  47. </td>
  48. </tr>
  49. <tr align="left">
  50. <td class="text">Generic Dictionary:</td>
  51. <td>
  52. <button id="Button5"
  53. onclick="PassGenericDictionary()">Pass Dictionary</button>
  54. </td>
  55. </tr>
  56. <tr align="left">
  57. <td class="text">Array:</td>
  58. <td>
  59. <button id="Button4"
  60. onclick="ArrayType()">Get Array</button>
  61. </td>
  62. </tr>
  63. </table>
  64. </center>
  65. <hr />
  66. <!-- Display current color object. -->
  67. <span id="ResultId"></span>
  68. </body>
  69. </html>