summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages/DatePicker.page
blob: fdbbbeb17b234669a015615b19a27b111e9df09b (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<com:TContent ID="Content">
	<h1>Date Picker validation Test</h1>
	<com:TDatePicker ID="picker1" DateFormat="d/M/yyyy"/>
	<com:TRequiredFieldValidator
		ID="validator1"
		ControlToValidate="picker1"
		ErrorMessage="Please enter a date (d/M/yyyy)" />
	<com:TRangeValidator
		ID="validator2"
		ControlToValidate="picker1"
		DataType="Date"
		DateFormat="d/M/yyyy"
		ErrorMessage="Please enter a date greater than 17/4/2007"
		MinValue="17/4/2007" />
		
	<hr />
	<com:TDatePicker ID="picker2" DateFormat="d/M/yyyy" InputMode="DropDownList" />

	<com:TRangeValidator
		ID="validator4"
		ControlToValidate="picker2"
		DataType="Date"
		DateFormat="d/M/yyyy"
		ErrorMessage="Please enter a date between 9/9/2006 and 8/10/2006"
		MinValue="9/9/2006"
		MaxValue="8/10/2006" />
		
	<hr />
	Date 1:
	<com:TDatePicker ID="picker3" DateFormat="d/M/yyyy" />
	<com:TRequiredFieldValidator
		ID="validator5"
		ControlToValidate="picker3"
		ErrorMessage="Please enter a date (d/M/yyyy)" />
	<br />
	Date 2:
	<com:TDatePicker ID="picker4" DateFormat="d/M/yyyy" />
	<com:TCompareValidator	
		ID="validator6"
		ControlToValidate="picker4"
		ControlToCompare="picker3"
		Operator="GreaterThan"
		DateFormat="d/M/yyyy"
		DataType="Date"
		ErrorMessage="Date 2 must be greater than Date 1" />
	
	<hr />
	
	Date 3:
	<com:TDatePicker ID="picker5" DateFormat="d/M/yyyy" InputMode="DropDownList" />
	<br />
	Date 4:
	<com:TDatePicker ID="picker6" DateFormat="d/M/yyyy" InputMode="DropDownList" />
	<com:TCompareValidator	
		ID="validator8"
		ControlToValidate="picker6"
		ControlToCompare="picker5"
		Operator="GreaterThan"
		DateFormat="d/M/yyyy"
		DataType="Date"
		ErrorMessage="Date 2 must be greater than Date 1" />
	<com:TButton ID="submit1" Text="Submit" />
		
</com:TContent>