<%@ Page Language=VB Debug=true %>
<HTML>
<HEAD>
<TITLE>Checking the Range of a Number through the RangeValidator Control</TITLE>
</HEAD>
<form runat="server">
<BR><BR>
Enter a Number:<BR>
<asp:textbox
id="txtNumber"
runat=server
/>
<asp:rangevalidator
id="rngQuantity"
controltovalidate="txtNumber"
type="Integer"
minimumvalue=5
maximumvalue=44
display="Dynamic"
font-name="Verdana"
font-bold="True"
font-size="10pt"
forecolor="blue"
runat="server">
The Quantity field must be from 5 to 44!
</asp:rangevalidator>
<BR><BR>
<asp:button
id="butOK"
text="OK"
type="Submit"
runat="server"
/>
</form>
</BODY>
</HTML>
|