<%@ Page Language="C#" MasterPageFile="~/UI.Master" AutoEventWireup="true" CodeBehind="Password.aspx.cs" Inherits="LZBS.Web.Password" Title="修改密码" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 150px;
        }
        .style2
        {
            width: 50px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="line-height:35px; margin-top:50px; height:400px;">
<div style="background-image: url('Images/title_bg.gif'); height: 27px; font-size: large; width:891px; text-align:left;">修改密码</div>
<div style="border: thin solid #3399FF;">
    <table cellpadding="2" cellspacing="1" style="width:100%; border:0px;">
        <tr style="  height:25px; font-weight:normal; font-size:12px; text-align:left;">
            <td style=" text-align:center;" class="style2">用户账号</td>
            <td class="style1">
                <asp:Label ID="lblMemberID" runat="server"></asp:Label>
                                </td>
            <td style=" width:50%;">
                &nbsp;</td>    
        </tr>
        <tr style="  height:25px; font-weight:normal; font-size:12px; text-align:left;">
            <td style=" text-align:center;" class="style2">当前密码</td>
            <td class="style1">
                <asp:TextBox ID="txtOldPwd" runat="server" TextMode="Password" MaxLength="50"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;
                </td>
            <td style=" width:50%;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtOldPwd" Display="Dynamic" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
                <asp:CustomValidator ID="CustomValidator1" runat="server" 
                    ControlToValidate="txtOldPwd" Display="Dynamic" ErrorMessage="你输入的当前密码错误" 
                    onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
            </td>
        </tr>
        <tr style="  height:25px; font-weight:normal; font-size:12px; text-align:left;">
            <td style=" text-align:center;" class="style2">密&nbsp;&nbsp;&nbsp; 码</td>
            <td class="style1">
                <asp:TextBox ID="txtNewPwd" runat="server" TextMode="Password" MaxLength="50"></asp:TextBox>
                                </td>
            <td style=" width:50%;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtOldPwd" Display="Dynamic" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
            </td>    
        </tr>
        <tr style="  height:25px; font-weight:normal; font-size:12px; text-align:left;">
            <td style=" text-align:center;" class="style2">确认密码</td>
            <td class="style1">
                <asp:TextBox ID="txtAgainPwd" runat="server" TextMode="Password" MaxLength="50"></asp:TextBox>
                                </td>
            <td style=" width:50%;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtAgainPwd" Display="Dynamic" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtNewPwd" ControlToValidate="txtAgainPwd" 
                    Display="Dynamic" ErrorMessage="两次密码必须一致"></asp:CompareValidator>
            </td>    
        </tr>
        <tr style="  height:25px; font-weight:normal; font-size:12px; text-align:left;">
            <td colspan="2">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnConfirm" runat="server" Text="确定" 
                    onclick="btnConfirm_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="btnCancel" style="width: 50px; height: 20px;" type="reset" 
                    value="取消" /></td>
                    <td></td>
        </tr>
    </table>
</div>
    
    
</div>
</asp:Content>
