summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket205.page
diff options
context:
space:
mode:
authorxue <>2006-07-02 18:05:42 +0000
committerxue <>2006-07-02 18:05:42 +0000
commit7e002c23edc5fb5db70935591aa6adeda25fc7fb (patch)
tree846feb337405448cc1559c2e7b4ed6f85798e0c7 /tests/FunctionalTests/tickets/protected/pages/Ticket205.page
parent618293517861b69334cd470068199394120cd20a (diff)
Merge from 3.0 branch till 1224.
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket205.page')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket205.page26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket205.page b/tests/FunctionalTests/tickets/protected/pages/Ticket205.page
new file mode 100644
index 00000000..1481a227
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket205.page
@@ -0,0 +1,26 @@
+<com:TContent ID="Content">
+ <h3>TCustomValidator not enabling ControlCssClass or prop:ClientSide.OnError after postback.</h3>
+ <style>
+ .required
+ {
+ border: 1px solid red;
+ background-color: pink;
+ }
+ </style>
+ <script type="text/javascript">
+ function clientSideCustomValidate(sender, param)
+ {
+ return param == "Prado";
+ }
+ </script>
+ <com:TTextBox ID="textbox1" />
+ <com:TCustomValidator
+ ID="validator1"
+ ControlToValidate="textbox1"
+ ControlCssClass="required"
+ OnServerValidate="customValidate"
+ ClientValidationFunction="clientSideCustomValidate"
+ ClientSide.OnError="alert('error')"
+ ErrorMessage="must equal to 'Prado'" />
+ <com:TButton ID="button1" Text="Submit!" />
+</com:TContent> \ No newline at end of file