<%@ Page Language=VB Debug=true %><%@ Import Namespace="System.Data" %>CompareValidator Control Sample Page id="lblMessage" runat="server" Font-Bold="True" Text="Quantity"/> id="txtQuantity" Columns="25" MaxLength="30" runat=server /> id="rngQuantity" ControlToValidate="txtQuantity" Type="Integer" MinimumValue=1 MaximumValue=30 Display="Dynamic" Font-Name="Verdana" Font-Bold="True" Font-Size="10pt" runat="server"> The Quantity field must be from 1 to 30! id="lblMessage2" runat="server" Font-Bold="True" Text="Date"/> id="txtDate" Columns="25" MaxLength="30" runat=server /> id="rngDate" ControlToValidate="txtDate" Type="Date" MinimumValue="1/1/2000" MaximumValue="12/31/2010" Display="Dynamic" Font-Name="Verdana" Font-Bold="True" Font-Size="10pt" runat="server"> The Date field must be from 1/1/2000 to 12/31/2001! id="butOK" text="OK" Type="Submit" runat="server"/>