Enter a number between 1 and 20:
ControlToValidate="txtNumber"
MinimumValue="1"
MaximumValue="20"
Type="Integer"
SetFocusOnError="true"
Text="Please enter number between 1 and 20" />
Enter a valid date from 2006:
ControlToValidate="txtDate"
CultureInvariantValues="true"
MinimumValue="2006/01/01"
MaximumValue="2006/12/31"
Type="Date"
SetFocusOnError="true"
Text="Please enter a valid date from 2006" />