<%@ Page language="c#" Codebehind="RegularValidator.aspx.cs" AutoEventWireup="false" Inherits="ValidatorDate.regularvalidator" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>regularvalidator</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="regularvalidator" method="post" runat="server">
			<FONT face="宋体">
				<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 200px; POSITION: absolute; TOP: 176px" runat="server" Font-Size="X-Small">请输入您的生日：</asp:Label>
				<asp:TextBox id="txtBirthDate" style="Z-INDEX: 102; LEFT: 312px; POSITION: absolute; TOP: 168px" runat="server"></asp:TextBox>
				<asp:Button id="Button1" style="Z-INDEX: 103; LEFT: 368px; POSITION: absolute; TOP: 240px" runat="server" Text="验证"></asp:Button>
				<asp:RegularExpressionValidator id="RegularExpressionValidator1" style="Z-INDEX: 104; LEFT: 480px; POSITION: absolute; TOP: 168px" runat="server" ValidationExpression="^(\d{2}|\d{4})[\-\/]((0?[1-9])|(1[0-2]))[\-\/]((0?[1-9])|((1|2)[0-9])|30|31)$" ControlToValidate="txtBirthDate">输入的时间格式不正确！</asp:RegularExpressionValidator></FONT>
		</form>
	</body>
</HTML>
