PageRenderTime 62ms CodeModel.GetById 34ms RepoModel.GetById 1ms app.codeStats 0ms

/MongoWSAT/Users/Register.aspx

https://github.com/alanning/MongoWSAT
ASP.NET | 167 lines | 157 code | 10 blank | 0 comment | 1 complexity | a9646dfe650641f1a700dade2078120a MD5 | raw file
  1. <%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" Inherits="Register" Title="Register For New Account" Codebehind="Register.aspx.cs" %>
  2. <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
  3. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  4. </asp:Content>
  5. <asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
  6. <h2 style="font-size:larger;font-weight:bold;">Account Registration</h2>
  7. <br />
  8. <asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
  9. ContinueDestinationPageUrl="~/Users/Login.aspx"
  10. OnCreatingUser="CreateUserWizard1_CreatingUser"
  11. onsendingmail="CreateUserWizard1_SendingMail"
  12. DisableCreatedUser="True"
  13. LoginCreatedUser="False"
  14. CssSelectorClass="PrettyCreateUserWizard"
  15. HeaderText="New User Account"
  16. CompleteSuccessText="Your account has been successfully created and a confirmation email has been sent to you. Please click on the link in this email to activate your account.">
  17. <MailDefinition BodyFileName="~/Users/EmailTemplates/CreateUserWizard.txt" Subject="Your new membership is almost complete! ">
  18. </MailDefinition>
  19. <WizardSteps>
  20. <asp:CreateUserWizardStep runat="server" >
  21. <ContentTemplate>
  22. <table style="width: 100%">
  23. <tr>
  24. <td align="left" colspan="2" style="font-size: 12px">
  25. Sign Up for Your New Account
  26. </td>
  27. </tr>
  28. <tr>
  29. <td align="right">
  30. <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">
  31. User Name:*
  32. </asp:Label>
  33. </td>
  34. <td>
  35. <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
  36. <asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
  37. ControlToValidate="UserName"
  38. ErrorMessage="User Name is required."
  39. ToolTip="User Name is required."
  40. ValidationGroup="CreateUserWizard1">
  41. *
  42. </asp:RequiredFieldValidator>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td align="right">
  47. <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">
  48. Password:*
  49. </asp:Label>
  50. </td>
  51. <td>
  52. <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
  53. <cc1:PasswordStrength ID="Password_PasswordStrength" runat="server"
  54. TargetControlID="Password" MinimumNumericCharacters="1"
  55. PreferredPasswordLength="7" TextCssClass="passwordStrengthIndicator"
  56. TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
  57. MinimumSymbolCharacters="1">
  58. </cc1:PasswordStrength>
  59. <asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
  60. ControlToValidate="Password" ErrorMessage="Password is required."
  61. ToolTip="Password is required." ValidationGroup="CreateUserWizard1">
  62. *
  63. </asp:RequiredFieldValidator>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td align="right">
  68. <asp:Label ID="ConfirmPasswordLabel" runat="server"
  69. AssociatedControlID="ConfirmPassword">
  70. Confirm Password:*
  71. </asp:Label>
  72. </td>
  73. <td>
  74. <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
  75. <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server"
  76. ControlToValidate="ConfirmPassword"
  77. ErrorMessage="Confirm Password is required."
  78. ToolTip="Confirm Password is required."
  79. ValidationGroup="CreateUserWizard1">
  80. *
  81. </asp:RequiredFieldValidator>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td align="right">
  86. <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">
  87. E-mail:*
  88. </asp:Label>
  89. </td>
  90. <td>
  91. <asp:TextBox ID="Email" runat="server"></asp:TextBox>
  92. <asp:RequiredFieldValidator ID="EmailRequired" runat="server"
  93. ControlToValidate="Email" ErrorMessage="E-mail is required."
  94. ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">
  95. *
  96. </asp:RequiredFieldValidator>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td align="right">
  101. <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">
  102. Security Question:*
  103. </asp:Label>
  104. </td>
  105. <td>
  106. <asp:TextBox ID="Question" runat="server"></asp:TextBox>
  107. <asp:RequiredFieldValidator ID="QuestionRequired" runat="server"
  108. ControlToValidate="Question" ErrorMessage="Security question is required."
  109. ToolTip="Security question is required." ValidationGroup="CreateUserWizard1">
  110. *
  111. </asp:RequiredFieldValidator>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td align="right">
  116. <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">
  117. Security Answer:*
  118. </asp:Label>
  119. </td>
  120. <td>
  121. <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
  122. <asp:RequiredFieldValidator ID="AnswerRequired" runat="server"
  123. ControlToValidate="Answer" ErrorMessage="Security answer is required."
  124. ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1">
  125. *
  126. </asp:RequiredFieldValidator>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td align="center" colspan="2">
  131. <asp:CompareValidator ID="PasswordCompare" runat="server"
  132. ControlToCompare="Password" ControlToValidate="ConfirmPassword"
  133. Display="Dynamic"
  134. ErrorMessage="The Password and Confirmation Password must match."
  135. ValidationGroup="CreateUserWizard1">
  136. </asp:CompareValidator>
  137. </td>
  138. </tr>
  139. <tr>
  140. <td align="center" colspan="2" style="color:Red;">
  141. <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False">
  142. </asp:Literal>
  143. </td>
  144. </tr>
  145. </table>
  146. </ContentTemplate>
  147. </asp:CreateUserWizardStep>
  148. <asp:CompleteWizardStep runat="server" />
  149. </WizardSteps>
  150. </asp:CreateUserWizard>
  151. <br />
  152. <asp:Label ID="InvalidUserNameOrPasswordMessage" runat="server"
  153. Visible="false"
  154. ForeColor="Red"
  155. EnableViewState="false">
  156. </asp:Label>
  157. </asp:Content>