summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages/CompareValidator.page
blob: 679d2e8e47936b2bdba62e933fbaf2f1659be2ac (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
<com:TContent ID="Content">
<h1>Prado CompareValidator Tests</h1>
<div>
	<div>
		<com:TTextBox ID="text1" />
		<com:TTextBox ID="text2" />
		<com:TCompareValidator
			ID="validator1"
			ControlToValidate="text1"
			ControlToCompare="text2"
			ErrorMessage="Must match"
			ControlCssClass="required" />
	</div>
	
	<div>
		<com:TTextBox ID="text3" />
		<com:TCompareValidator
			ID="validator2"
			ControlToValidate="text3"
			ValueToCompare="12/1/2005"
			DataType="Date"
			DateFormat="d/M/yyyy"
			ErrorMessage="Must be a date 12/1/2005"
			ControlCssClass="required" />
	</div>

	<com:TButton ID="submit1" Text="Test" />
</div>


</com:TContent>