summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php
index 0db261b9..da0d15b2 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php
@@ -7,6 +7,12 @@ class Home extends TPage
if($param->Value!=='test')
$param->IsValid=false;
}
+
+ public function serverValidateNoControl($sender,$param)
+ {
+ if($this->TextBox4->Text!=='test')
+ $param->IsValid=false;
+ }
}
?> \ No newline at end of file