login.aspx 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <%@ Page Language="C#" %>
  2. <html xmlns="http://www.w3.org/1999/xhtml" >
  3. <head runat="server">
  4. <title>Using Profile Service</title>
  5. <style type="text/css">
  6. body { font: 11pt Trebuchet MS;
  7. font-color: #000000;
  8. padding-top: 72px;
  9. text-align: center }
  10. .text { font: 8pt Trebuchet MS }
  11. </style>
  12. </head>
  13. <body>
  14. <form id="form1" runat="server">
  15. <asp:ScriptManager runat="server" ID="ScriptManagerId">
  16. <Scripts>
  17. <asp:ScriptReference Path="Profile.js" />
  18. </Scripts>
  19. </asp:ScriptManager>
  20. <div id="loginId" style="visibility:visible">
  21. <table id="loginForm">
  22. <tr>
  23. <td>UserId</td>
  24. <td><input type="text"
  25. id="userId" name="userId" value=""/></td>
  26. </tr>
  27. <tr>
  28. <td>Password</td>
  29. <td><input type="password"
  30. id="userPwd" name="userPwd" value="" /></td>
  31. </tr>
  32. <tr>
  33. <td><input type="button"
  34. id="login" name="login" value="Login"
  35. onclick="OnClickLogin()" /></td>
  36. </tr>
  37. </table>
  38. <p>
  39. Please use one of the following [username, password] combinations:<br />
  40. [user1, u$er1] <br/>
  41. [user2, u$er2] <br/>
  42. [user3, u$er3]
  43. </p>
  44. </div>
  45. <div id="setProfProps" style="visibility:hidden">
  46. <input type="button"
  47. value="Set Profile Properties"
  48. onclick="SetProfileControlsVisibility('visible')"/>
  49. </div>
  50. <div id="placeHolder" style="visibility:visible" />
  51. <br />
  52. <input id="logoutId" type="button"
  53. value="Logout" style="visibility:hidden"
  54. onclick="OnClickLogout()" />
  55. <div id="setProfileProps" style="visibility:hidden">
  56. <table>
  57. <tr>
  58. <td>Foreground Color</td>
  59. <td><input type="text" id="fgcolor"
  60. name="fgcolor" value=""/></td>
  61. </tr>
  62. <tr>
  63. <td>Background Color</td>
  64. <td><input type="text" id="bgcolor"
  65. name="bgcolor" value="" /></td>
  66. </tr>
  67. <tr>
  68. <td><input type="button"
  69. id="saveProf" name="saveProf"
  70. value="Save Profile Properties"
  71. onclick="SaveProfile();" /></td>
  72. </tr>
  73. </table>
  74. </div>
  75. </form>
  76. </body>
  77. </html>