blob: f0021299d4d35300f220f82a4371a443da63ebd2 (
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
32
33
34
35
36
|
<com:TContent ID="Content">
<h1>Callback Enabled Calculator</h1>
<com:TActiveTextBox id="a" />
+
<com:TActiveTextBox id="b" />
=
<com:TActiveTextBox id="c" />
<com:TCallbackOptions id="option1">
<prop:ClientSide OnSuccess="alert('ok!')" />
</com:TCallbackOptions>
<com:TActiveButton id="sum"
onclick="do_sum"
text="Calculate!"
ActiveControl.CallbackOptions="option1" />
<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>
|