<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModPwd.aspx.cs" Inherits="Tester_ModPwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>修改密码</title>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div style="margin-top:10px;">
            <table cellpadding="0" cellspacing="0" class="form" width="800">
                <tr>
                    <td align="left" class="formName" colspan="2">
                        <span style="margin-left: 10px">修改密码</span>
                    </td>
                </tr>
                <tr>
                    <td class="titleName" style="width: 200px; height: 22px;">
                        原密码：
                    </td>
                    <td class="inputArea" style="width: 598px; height: 22px;">
                        <asp:TextBox ID="txtOldPwd" runat="server" CssClass="txt" TextMode="Password" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOldPwd"
                            ErrorMessage="*原密码不能空！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="titleName" style="width: 200px">
                        新密码：
                    </td>
                    <td class="inputArea" style="width: 598px">
                        <asp:TextBox ID="txtNewPwd" runat="server" CssClass="txt" TextMode="Password" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPwd"
                            ErrorMessage="*新密码不能空！"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtNewPwd"
                            ErrorMessage="*密码长度必须在6-12位之间！" ValidationExpression="^.{6,12}$"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class="titleName" style="width: 200px">
                        &nbsp;
                    </td>
                    <td class="inputArea" style="width: 598px">
                        <div class="tip">
                            <span class="content">提示：密码长度必须在6-12位之间！</span></div>
                    </td>
                </tr>
                <tr>
                    <td class="titleName" style="width: 200px; height: 22px">
                        重复新密码：</td>
                    <td class="inputArea" style="width: 598px; height: 22px">
                        <asp:TextBox ID="txtReNewPwd" runat="server" CssClass="txt" TextMode="Password" Width="150px"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPwd"
                            ControlToValidate="txtReNewPwd" ErrorMessage="*密码不一致！"></asp:CompareValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtReNewPwd"
                            ErrorMessage="*重复新密码不能空！"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="submitArea" colspan="2">
                        <span style="margin-right: 10px">
                            <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                            <asp:Button ID="btnSubmit" runat="server" CssClass="btn" Text="提 交" Width="80px" OnClick="btnSubmit_Click" /></span></td>
                </tr>
            </table>
        </div>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" />
    
    </form>
</body>
</html>
