summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages/DataTypeValidator.page
diff options
context:
space:
mode:
authorxue <>2006-04-25 01:31:43 +0000
committerxue <>2006-04-25 01:31:43 +0000
commit5ba6cd4be568f686d890835a77586077cde1a943 (patch)
tree54138a79e147bcfb0f6833d2d284a2f825c18f2a /tests/FunctionalTests/validators/protected/pages/DataTypeValidator.page
parent1afc913c386bba8e6072c278b0eb4fd9818ab310 (diff)
Merge from 3.0 branch till 967.
Diffstat (limited to 'tests/FunctionalTests/validators/protected/pages/DataTypeValidator.page')
-rw-r--r--tests/FunctionalTests/validators/protected/pages/DataTypeValidator.page33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/FunctionalTests/validators/protected/pages/DataTypeValidator.page b/tests/FunctionalTests/validators/protected/pages/DataTypeValidator.page
new file mode 100644
index 00000000..48821f83
--- /dev/null
+++ b/tests/FunctionalTests/validators/protected/pages/DataTypeValidator.page
@@ -0,0 +1,33 @@
+<com:TContent ID="Content">
+ <h1>Data Type Validator Tests</h1>
+ Integer test.
+ <com:TTextBox ID="textbox1" />
+ <com:TDataTypeValidator ID="validator1"
+ ControlToValidate="textbox1"
+ DataType="Integer"
+ ErrorMessage="Please enter an integer." />
+
+ <hr />
+
+ Float test.
+ <com:TTextBox ID="textbox2" />
+ <com:TDataTypeValidator ID="validator2"
+ ControlToValidate="textbox2"
+ DataType="Float"
+ ErrorMessage="Please enter float value." />
+
+ <hr />
+
+ Date Test
+ <com:TTextBox ID="textbox3" />
+ <com:TDataTypeValidator ID="validator3"
+ ControlToValidate="textbox3"
+ DataType="Date"
+ DateFormat="d/M/yyyy"
+ ErrorMessage="Please enter a date d/M/yyyy." />
+
+ <hr />
+
+ <com:TButton ID="button1" Text="submit!" />
+
+</com:TContent> \ No newline at end of file