summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/Calculator.page
blob: 7a56565806623ca7a50beb2f65827ce4600ce919 (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
<com:TForm ID="form1">
	<h1>Callback Enabled Calculator</h1>
	
	<com:TActiveTextBox id="a" />
	+
	<com:TActiveTextBox id="b" />
	=
	<com:TActiveTextBox id="c" />
	
	<com:TActiveButton id="sum" 
		onclick="do_sum" 
		text="Calculate!" />
	
	<com:TRequiredFieldValidator 
			ControlToValidate="a"
			ErrorMessage="left summand is required."
			ControlCssClass="required"
			Display="None" />
	<com:TRequiredFieldValidator
			ControlToValidate="b"
			ErrorMessage="right summand is requied."
			ControlCssClass="required"
			Display="None" />

	<div class="summarybox">
		<com:TValidationSummary
			ID="summary"
			HeaderText="Unable to calculate because" />
	</div>
	
</com:TForm>