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

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        用户名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:RequiredFieldValidator
            ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1">请输入用户名！</asp:RequiredFieldValidator><br />
         密&nbsp;码：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><asp:RequiredFieldValidator
            ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox2">请输入密码！</asp:RequiredFieldValidator><br />
        <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" /></div>
    </form>
</body>
</html>
