<%@ Page Language=VB Debug=true %>
<HTML>
<HEAD>
<TITLE>Comparing a Field to a Numeric Data Type using the CompareValidator Control</TITLE>
</HEAD>
<form runat="server">
<BR><BR>
Please enter a Whole Number:<BR>
<asp:textbox
id="txtNumber"
runat=server
/>
<asp:comparevalidator
id="cvCheckNumber"
controltovalidate="txtNumber"
operator="DataTypeCheck"
type="Integer"
runat="server"
>
You must enter a whole number!
</asp:CompareValidator><BR><BR>
<asp:button
id="butOK"
text="OK"
type="Submit"
runat="server"
/>
</form>
</BODY>
</HTML>
|