home *** CD-ROM | disk | FTP | other *** search
/ 61.19.244.139 / 61.19.244.139.zip / 61.19.244.139 / newsvr / checkPolicy / Account / ChangePassword.aspx next >
Text File  |  2013-03-28  |  4KB  |  61 lines

  1. ∩╗┐<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
  2.     CodeBehind="ChangePassword.aspx.cs" Inherits="eCheckCompuls.Account.ChangePassword" %>
  3.  
  4. <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
  5. </asp:Content>
  6. <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
  7.     <h2>
  8.         Change Password
  9.     </h2>
  10.     <p>
  11.         Use the form below to change your password.
  12.     </p>
  13.     <p>
  14.         New passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length.
  15.     </p>
  16.     <asp:ChangePassword ID="ChangeUserPassword" runat="server" CancelDestinationPageUrl="~/" EnableViewState="false" RenderOuterTable="false" 
  17.          SuccessPageUrl="ChangePasswordSuccess.aspx">
  18.         <ChangePasswordTemplate>
  19.             <span class="failureNotification">
  20.                 <asp:Literal ID="FailureText" runat="server"></asp:Literal>
  21.             </span>
  22.             <asp:ValidationSummary ID="ChangeUserPasswordValidationSummary" runat="server" CssClass="failureNotification" 
  23.                  ValidationGroup="ChangeUserPasswordValidationGroup"/>
  24.             <div class="accountInfo">
  25.                 <fieldset class="changePassword">
  26.                     <legend>Account Information</legend>
  27.                     <p>
  28.                         <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">Old Password:</asp:Label>
  29.                         <asp:TextBox ID="CurrentPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
  30.                         <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword" 
  31.                              CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Old Password is required." 
  32.                              ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator>
  33.                     </p>
  34.                     <p>
  35.                         <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">New Password:</asp:Label>
  36.                         <asp:TextBox ID="NewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
  37.                         <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword" 
  38.                              CssClass="failureNotification" ErrorMessage="New Password is required." ToolTip="New Password is required." 
  39.                              ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator>
  40.                     </p>
  41.                     <p>
  42.                         <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">Confirm New Password:</asp:Label>
  43.                         <asp:TextBox ID="ConfirmNewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
  44.                         <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword" 
  45.                              CssClass="failureNotification" Display="Dynamic" ErrorMessage="Confirm New Password is required."
  46.                              ToolTip="Confirm New Password is required." ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator>
  47.                         <asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
  48.                              CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Confirm New Password must match the New Password entry."
  49.                              ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:CompareValidator>
  50.                     </p>
  51.                 </fieldset>
  52.                 <p class="submitButton">
  53.                     <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"/>
  54.                     <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword" Text="Change Password" 
  55.                          ValidationGroup="ChangeUserPasswordValidationGroup"/>
  56.                 </p>
  57.             </div>
  58.         </ChangePasswordTemplate>
  59.     </asp:ChangePassword>
  60. </asp:Content>
  61.