<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ex3-3.aspx.cs" Inherits="Ex3_3" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Ex3-3</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        年龄：<asp:TextBox ID="txtage" runat="server"></asp:TextBox>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToValidate="txtage" Operator="GreaterThan" 
            Type="Integer" ValueToCompare="18">应大于18</asp:CompareValidator>
        <br />
        入学日期：<asp:TextBox ID="txtrx" runat="server"></asp:TextBox>
        <br />
        毕业日期：<asp:TextBox ID="txtby" runat="server"></asp:TextBox>
        <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txtrx"
        ControlToValidate="txtby" Operator="GreaterThan"
        Type="Date">应晚于入学日期</asp:CompareValidator>
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="提交" />    
    </div>
    </form>
</body>
</html>
