<%@ Page language="c#" Codebehind="CompareValidator.aspx.cs" AutoEventWireup="false" Inherits="ValidatorDate.ValidatorDate" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ValidatorDate</title>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<TABLE height="614" cellSpacing="0" cellPadding="0" width="322" border="0" ms_2d_layout="TRUE">
			<TR vAlign="top">
				<TD width="322" height="614">
					<form id="ValidatorDate" method="post" runat="server">
						<TABLE height="305" cellSpacing="0" cellPadding="0" width="602" border="0" ms_2d_layout="TRUE">
							<TR vAlign="top">
								<TD width="184" height="168"></TD>
								<TD width="112"></TD>
								<TD width="48"></TD>
								<TD width="128"></TD>
								<TD width="130"></TD>
							</TR>
							<TR vAlign="top">
								<TD height="112"></TD>
								<TD>
									<asp:Label id="Label1" runat="server" Font-Size="X-Small">请输入您的生日：</asp:Label></TD>
								<TD colSpan="2">
									<asp:TextBox id="txtBirthDate" runat="server"></asp:TextBox></TD>
								<TD>
									<asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="输入格式不正确！" ControlToValidate="txtBirthDate" Operator="DataTypeCheck" Type="Date" Display="Dynamic"></asp:CompareValidator></TD>
							</TR>
							<TR vAlign="top">
								<TD colSpan="3" height="25"></TD>
								<TD colSpan="2">
									<asp:Button id="Button1" runat="server" Text="验证"></asp:Button></TD>
							</TR>
						</TABLE>
					</form>
				</TD>
			</TR>
		</TABLE>
	</body>
</HTML>
