summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
blob: c20e810b347f7552c2bf0d90e2fa326fa8c4a608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<com:TContent ID="Content">
	<com:TClientScript UsingPradoScripts="ajax" />
	<com:TActiveControl id="control1" 
		ClientSide.CausesValidation="false"
		ClientSide.OnSuccess="Logger.info('result:'+result)" />
	<com:TTextBox id="text1" />
	<com:TRequiredFieldValidator
		ControlToValidate="text1"
		ErrorMessage="*" />
	<com:TCheckBoxList>
		<com:TListItem Text="One" />
		<com:TListItem Text="Two" />
	</com:TCheckBoxList>
	<com:TButton id="button1" Text="Submit" CausesValidation="false" />
	<script>
		Event.observe("<%= $this->button1->ClientID %>", "click", function(event)
		{
			<%= $this->control1->CallbackReference %>	
			Event.stop(event);
		});
	</script>
</com:TContent>