summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages/RangeValidatorInteger.page
blob: 922236e5015c523bc747de3bbb293de122177c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<com:TContent ID="Content">
<h1>Prado RangeValidator Tests Integer</h1>
<div>
	<p>Integers between 1 and 4</p>
	<div>
		<com:TTextBox ID="text1" />
		<com:TRangeValidator
			ID="validator1"
			ControlToValidate="text1"
			ErrorMessage="Numbers between 1 and 4"
			MinValue="1"
			MaxValue="4"
			DataType="Integer"
			ControlCssClass="required" />
	</div>
	<p>Integers &gt;= 2</p>
	<div>
		<com:TTextBox ID="text2" />
		<com:TRangeValidator
			ID="validator2"
			ControlToValidate="text2"
			ErrorMessage="Numbers &gt;= 2"
			MinValue="2"
			DataType="Integer"
			ControlCssClass="required" />
	</div>
	
	<p>Integers &lt;= 20</p>
	<div>
		<com:TTextBox ID="text3" />
		<com:TRangeValidator
			ID="validator3"
			ControlToValidate="text3"
			ErrorMessage="Numbers &lt;= 20"
			MaxValue="20"
			DataType="Integer"
			ControlCssClass="required" />
	</div>
		
	<com:TButton ID="submit1" Text="Test" />
</div>



</com:TContent>