diff options
author | xue <> | 2006-04-21 12:36:06 +0000 |
---|---|---|
committer | xue <> | 2006-04-21 12:36:06 +0000 |
commit | e392ecbf6e422825083bc7204eacb7090619a47c (patch) | |
tree | 8f2dcc8302f223ac2c71efd762417eddf84d62aa /tests/FunctionalTests/validators/protected/pages/CustomValidator.page | |
parent | c54a230a5926086ff1b69a0dd7e6352dbc0b40ff (diff) |
Merge from 3.0 branch till 953.
Diffstat (limited to 'tests/FunctionalTests/validators/protected/pages/CustomValidator.page')
-rw-r--r-- | tests/FunctionalTests/validators/protected/pages/CustomValidator.page | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/FunctionalTests/validators/protected/pages/CustomValidator.page b/tests/FunctionalTests/validators/protected/pages/CustomValidator.page new file mode 100644 index 00000000..2d0d490b --- /dev/null +++ b/tests/FunctionalTests/validators/protected/pages/CustomValidator.page @@ -0,0 +1,26 @@ +<com:TContent ID="Content">
+<h1>Prado CustomValidator Tests</h1>
+
+<script type="text/javascript">
+var MyCustomValidator =
+{
+ validate : function(sender, value)
+ {
+ return value == "Prado";
+ }
+}
+</script>
+<div>
+ <com:TTextBox ID="text1" />
+ <com:TCustomValidator
+ ID="validator1"
+ ControlToValidate="text1"
+ ErrorMessage="Enter 'Prado'"
+ ControlCssClass="required"
+ ClientValidationFunction="MyCustomValidator.validate"
+ OnServerValidate="CustomValidation"
+ />
+ <com:TButton ID="submit1" Text="Test" />
+</div>
+
+</com:TContent>
\ No newline at end of file |