<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ex2-2.aspx.cs" Inherits="Ex2_2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Ex2-2</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    姓名：<asp:TextBox ID="txtname" runat="server" AutoPostBack="True" Width="80px" MaxLength="3" ontextchanged="txtname_TextChanged" />
    <br />
    密码：<asp:TextBox ID="TextBox2" runat="server" TextMode="Password" />
    <br />
    <asp:Button ID="Button1" runat="server" Text="登录" />
    </div>
    </form>
</body>
</html>
