diff options
author | wei <> | 2006-06-17 01:55:05 +0000 |
---|---|---|
committer | wei <> | 2006-06-17 01:55:05 +0000 |
commit | b3ceed048bb533a00bbea542f7c12b49c8c83d9b (patch) | |
tree | 97962fc3cb6746ae404c4f1d0095834bbb0e1ac7 /tests/FunctionalTests/active-controls/protected/pages/Calculator.page | |
parent | 6c0154fb4e292ad22667e618f598a37cc5f9d524 (diff) |
Update changes to active controls, add FT tests for active controls, add comments.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/Calculator.page')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/Calculator.page | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/Calculator.page b/tests/FunctionalTests/active-controls/protected/pages/Calculator.page new file mode 100644 index 00000000..7a565658 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/Calculator.page @@ -0,0 +1,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>
\ No newline at end of file |