XmlHttpExecutor.aspx 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 XmlHttpExecutor </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>Using XmlHttpExecutor</h2>
  16. <form id="form1" runat="server">
  17. <asp:ScriptManager runat="server" ID="scriptManagerId">
  18. <Scripts>
  19. <asp:ScriptReference Path="XmlHttpExecutor.js" />
  20. </Scripts>
  21. </asp:ScriptManager>
  22. </form>
  23. <table>
  24. <tr align="left">
  25. <td>Abort a Web request:</td>
  26. <td>
  27. <button id="Button1"
  28. onclick="AbortWebRequest()">Abort</button>
  29. </td>
  30. </tr>
  31. <tr align="left">
  32. <td>Execute a Web request:</td>
  33. <td>
  34. <button id="Button2" title="also gets headers, body"
  35. onclick="ExecuteWebRequest()">Execute</button>
  36. </td>
  37. </tr>
  38. <tr align="left">
  39. <td>Get Xml:</td>
  40. <td>
  41. <button id="Button3"
  42. onclick="GetXml()">Xml</button>
  43. </td>
  44. </tr>
  45. </table>
  46. <hr />
  47. <div id="ResultId" style="background-color:Aqua;"></div>
  48. </body>
  49. </html>