<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ex3-2.aspx.cs" Inherits="Ex3_2" %>
<html>
<head runat="server">
    <title>Ex3-2</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
        新密码：<asp:TextBox ID="txtpwd1" runat="server" TextMode="Password"></asp:TextBox>
        <br />
        再次输入新密码：<asp:TextBox ID="txtpwd2" runat="server" TextMode="Password"></asp:TextBox>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToCompare="txtpwd1" ControlToValidate="txtpwd2" SetFocusOnError="True">两次密码不一致</asp:CompareValidator>
        <br />
        <asp:Button ID="Button1" runat="server" Text="验证密码" />    
    </div>
    </form>
</body>
</html>
