login.aspx 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 runat="server">
  5. <title>Authentication Service</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. <form id="form1" runat="server">
  16. <asp:ScriptManager runat="server" ID="ScriptManagerId">
  17. <Scripts>
  18. <asp:ScriptReference Path="Authentication.js" />
  19. </Scripts>
  20. </asp:ScriptManager>
  21. <h2>Authentication Service</h2>
  22. <span id="loggedin"
  23. style="visibility:hidden; color:Green; font-weight:bold; font-size:large"
  24. visible="false"><b>You are logged in! </b>
  25. </span>
  26. <span id="notloggedin"
  27. style="visibility:visible;color:Red; font-weight:bold; font-size:large">
  28. You are logged out!
  29. <br /> <br />
  30. <span style="font-weight:normal; font-size:medium; color:Black">
  31. Please, use one of the following [username, password]
  32. combinations:<br />
  33. [user1, u$er1] <br/>
  34. [user2, u$er2] <br/>
  35. [user3, u$er3]
  36. </span>
  37. </span>
  38. <br /><br />
  39. <div>
  40. <table>
  41. <tr id="NameId" style="visibility:visible;">
  42. <td style="background-color:Yellow; font-weight:bold; color:Red">
  43. User Name:
  44. </td>
  45. <td>
  46. <input type="text" id="username"/>
  47. </td>
  48. </tr>
  49. <tr id="PwdId" style="visibility:visible;">
  50. <td style="background-color:Yellow; font-weight:bold; color:Red">
  51. Password:
  52. </td>
  53. <td>
  54. <input type="password" id="password" />
  55. </td>
  56. </tr>
  57. <tr>
  58. <td colspan="2" align="center">
  59. <button id="ButtonLogin"
  60. style="background-color:Aqua;"
  61. onclick="OnClickLogin(); return false;">Login</button>
  62. <button id="ButtonLogout"
  63. style="background-color:Aqua; visibility:hidden;"
  64. onclick="OnClickLogout(); return false;">Logout</button>
  65. </td>
  66. </tr>
  67. </table>
  68. <br />
  69. <br />
  70. <a href="secured/Default.aspx" target="_top2" >
  71. Attempt to access a page
  72. that requires authenticated users.</a>
  73. <br />
  74. <br />
  75. <!-- <a href="CreateNewUser.aspx"><b>Create a new user.</b></a>
  76. -->
  77. </div>
  78. </form>
  79. <hr />
  80. <div id="FeedBackID" style="visibility:visible" />
  81. </body>
  82. </html>