WebRequestManager.aspx 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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> WebRequestManager Example </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>WebRequestManager Example</h2>
  16. <form id="form1" runat="server">
  17. <asp:ScriptManager runat="server" ID="scriptManagerId">
  18. <Scripts>
  19. <asp:ScriptReference Path="WebRequestManager.js" />
  20. </Scripts>
  21. </asp:ScriptManager>
  22. </form>
  23. <table>
  24. <tr align="left">
  25. <td>Make a Web request:</td>
  26. <td>
  27. <button id="Button1"
  28. title="adds and remove handlers, too"
  29. onclick="MakeWebRequest(); return false;">Web Request</button>
  30. </td>
  31. </tr>
  32. <tr align="left">
  33. <td>Set, get default executor:</td>
  34. <td>
  35. <button id="Button2"
  36. onclick="DefaultExecutor(); return false;">Executor</button>
  37. </td>
  38. </tr>
  39. <tr align="left">
  40. <td>Set, get default timeout:</td>
  41. <td>
  42. <button id="Button3"
  43. onclick="DefaultTimeout(); return false;">Timeout</button>
  44. </td>
  45. </tr>
  46. </table>
  47. <hr />
  48. <div id="ResultId" style="background-color:Aqua;"></div>
  49. </body>
  50. </html>