<h3><font face="Verdana">CompareValidator Example</font></h3> <p>Type a value in each textbox, select a comparison operator, then click "Validate" to test.</p>
<asp:Label id=lblOutput runat="server" Text="Enter an even number:" Font-Name="Verdana" Font-Size="10pt" /><br>
<p>
<asp:TextBox id=Text1 runat="server" />
<asp:CustomValidator id="CustomValidator1" runat="server" ControlToValidate="Text1" OnServerValidationFunction="ServerValidate" Display="Static" Font-Name="verdana" Font-Size="10pt"> Not an even number! </asp:CustomValidator>