default.aspx 3.0 KB

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