summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/Calculator.page
blob: e7b1f180b2da0651e55aa772b902840d4ecc2bb7 (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:TContent ID="Content">
	<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:TContent>