summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages/ListControl.page
blob: a75dc3ff4b6b34640147c7c27116a45c4e4b8625 (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
<com:TContent ID="Content">
	<h1>List Control Required Field Validation Test</h1>
	<com:TCheckBoxList ID="list1">
		<com:TListItem Text="Select a color below" Value="" />
		<com:TListItem Text="Red" />
		<com:TListItem Text="Blue" />
		<com:TListItem Text="Green" />
	</com:TCheckBoxList>

	<com:TRequiredFieldValidator ID="validator1"
		ControlToValidate="list1"
		InitialValue="Select a color below"
		ErrorMessage="*" />

	<hr />

	<com:TDropDownList ID="list2">
		<com:TListItem Text="--- Select a color ---" />
		<com:TListItem Text="Red" />
		<com:TListItem Text="Blue" />
		<com:TListItem Text="Green" />
	</com:TDropDownList>

	<com:TRequiredFieldValidator ID="validator2"
		ControlToValidate="list2"
		InitialValue="--- Select a color ---"
		ErrorMessage="*" />

	<hr />

	<com:TListBox ID="list3">
		<com:TListItem Text="Dont select this one" />
		<com:TListItem Text="Red" />
		<com:TListItem Text="Blue" />
		<com:TListItem Text="Green" />
	</com:TListBox>

	<com:TRequiredFieldValidator ID="validator3"
		ControlToValidate="list3"
		InitialValue="Dont select this one"
		ErrorMessage="*" />

	<hr />

	<com:TRadioButtonList ID="list4">
		<com:TListItem Text="Select something else" />
		<com:TListItem Text="Red" />
		<com:TListItem Text="Blue" />
		<com:TListItem Text="Green" />
	</com:TRadioButtonList>

	<com:TRequiredFieldValidator ID="validator4"
		ControlToValidate="list4"
		InitialValue="Select something else"
		ErrorMessage="*" />

	<com:TButton ID="submit1" Text="Submit!" />
</com:TContent>