ConnectingEndPoints.aspx 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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>Connecting HTTP End Points Sample</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: 8pt Trebuchet MS }
  12. </style>
  13. </head>
  14. <body>
  15. <h2>Connecting HTTP End Points Example</h2>
  16. <!-- Add the script manager -->
  17. <form id="form1" runat="server">
  18. <asp:ScriptManager runat="server" ID="ScriptManagerId">
  19. <Scripts>
  20. <asp:ScriptReference Path="ConnectingEndPoints.js" />
  21. </Scripts>
  22. </asp:ScriptManager>
  23. </form>
  24. <table>
  25. <tr align="left">
  26. <td>Make GET Request:</td>
  27. <td>
  28. <button id="Button1"
  29. onclick="GetWebRequest()"
  30. type="button">GET Request</button>
  31. </td>
  32. </tr>
  33. <tr align="left">
  34. <td>Make POST Request:</td>
  35. <td>
  36. <button id="Button2"
  37. onclick="PostWebRequest()"
  38. type="button">POST Request</button>
  39. </td>
  40. </tr>
  41. </table>
  42. <hr />
  43. <div id="ResultId" style="background-color:Aqua" />
  44. </body>
  45. </html>