summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page
blob: bf15ba0eef58eca26b192d1633bf0dd0ff8592f4 (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
<com:TContent ID="Content">
	<h1>Active Drop Down List Test Case</h1>

	<com:TActiveDropDownList ID="list1" AutoPostBack="true" SelectedIndex="0" OnSelectedIndexChanged="list1_changed">
		<com:TListItem Value="value 1" Text="item 1" />
		<com:TListItem Value="value 2" Text="item 2" />
		<com:TListItem Value="value 3" Text="item 3" />
		<com:TListItem Value="value 4" Text="item 4" />
	</com:TActiveDropDownList>

	<com:TActiveDropDownList ID="list2"
		Enabled="false"
		AutoPostBack="true" OnSelectedIndexChanged="list2_changed" />

	<div style="margin:1em; padding:1em; border:1px solid #ccc; text-align:center;">
	<com:TActiveLabel ID="label1" Text="Label 1" />
	<br/>
	<com:TActiveLabel ID="label2" Text="Label 2" />
	</div>
	<div style="margin:1em; padding:0.5em; text-align:center; border:1px solid #ccc;">
		<com:TActiveButton ID="button1" Text="Select Index 3" OnClick="select_index_3" />
		<com:TActiveButton ID="button2" Text="Clear selection" OnClick="clear_selections" />
		<com:TActiveButton ID="button3" Text="Select Value 'value 2'" OnClick="select_value_2" />
		<com:TActiveButton ID="button4" Text="Select Item 3 And Sub Item 3" OnClick="select_index_3_plus" />

		<com:TButton ID="button5" Text="Post Back" OnClick="do_postback"/>
	</div>

</com:TContent>