<%@ Page language="c#" Codebehind="CustomValidator.aspx.cs" AutoEventWireup="false" Inherits="UsingServerControls.CustomValidator" %>
<%@ Register TagPrefix="cc1" Namespace="WebControlLibrary1" Assembly="WebControlLibrary1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>CustomValidator</title>
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="CustomValidator" method="post" runat="server">
			<FONT face="ËÎÌå">
				<DIV style="DISPLAY: inline; Z-INDEX: 101; LEFT: 35px; WIDTH: 52px; POSITION: absolute; TOP: 67px; HEIGHT: 16px"
					ms_positioning="FlowLayout">Name:</DIV>
				<cc1:WebCustomControl1 id="WebCustomControl12" style="Z-INDEX: 113; LEFT: 8px; POSITION: absolute; TOP: 8px"
					runat="server"></cc1:WebCustomControl1>
				<asp:textbox id="Name" style="Z-INDEX: 102; LEFT: 169px; POSITION: absolute; TOP: 63px" runat="server"></asp:textbox>
				<DIV style="DISPLAY: inline; Z-INDEX: 103; LEFT: 32px; WIDTH: 70px; POSITION: absolute; TOP: 122px; HEIGHT: 15px"
					ms_positioning="FlowLayout">Email:</DIV>
				<asp:textbox id="Email" style="Z-INDEX: 104; LEFT: 171px; POSITION: absolute; TOP: 118px" runat="server"></asp:textbox>
				<DIV style="DISPLAY: inline; Z-INDEX: 105; LEFT: 32px; WIDTH: 109px; POSITION: absolute; TOP: 187px; HEIGHT: 32px"
					ms_positioning="FlowLayout">Phone Number:</DIV>
				<asp:textbox id="PhoneNumber" style="Z-INDEX: 106; LEFT: 175px; POSITION: absolute; TOP: 186px"
					runat="server"></asp:textbox><asp:button id="SubmitBtn" style="Z-INDEX: 107; LEFT: 33px; POSITION: absolute; TOP: 251px"
					runat="server" Text="Submit"></asp:button><asp:regularexpressionvalidator id="RegularExpressionValidator1" style="Z-INDEX: 108; LEFT: 409px; POSITION: absolute; TOP: 116px"
					runat="server" ErrorMessage="Invalid Email. Should has the form name@domain" ControlToValidate="Email" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator2" style="Z-INDEX: 109; LEFT: 413px; POSITION: absolute; TOP: 185px"
					runat="server" ErrorMessage="Invalid phone number." ControlToValidate="PhoneNumber" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"></asp:regularexpressionvalidator><asp:customvalidator id="RequiredFieldsValidator" style="Z-INDEX: 110; LEFT: 33px; POSITION: absolute; TOP: 299px"
					runat="server" ErrorMessage="You must specify either Email or Phone Number." EnableClientScript="False"></asp:customvalidator><asp:requiredfieldvalidator id="RequiredFieldValidator1" style="Z-INDEX: 111; LEFT: 413px; POSITION: absolute; TOP: 67px"
					runat="server" ErrorMessage="You must fill in your name." ControlToValidate="Name"></asp:requiredfieldvalidator><asp:validationsummary id="ValidationSummary1" style="Z-INDEX: 112; LEFT: 288px; POSITION: absolute; TOP: 416px"
					runat="server" ShowMessageBox="True"></asp:validationsummary></FONT></form>
	</body>
</HTML>
