summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
blob: 2d43bb82522aea524702c5a4e65cde08df9f8cb9 (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
<com:TContent ID="Content">
	<h1>TCallback Demo</h1>
	<com:TClientScript UsingPradoScripts="ajax" />
	<com:TCallback id="control1" 
		OnCallback="control1onCallback" />
		
	<com:TActiveLabel id="label1" Text="Name:" />
	<com:TTextBox id="text1" />

	<com:TCheckBoxList>
		<com:TListItem Text="One" />
		<com:TListItem Text="Two" />
	</com:TCheckBoxList>

	<input type="hidden" name="PRADO_CALLBACK_TARGET" value="<%= $this->control1->UniqueID %>" />

	<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>