diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php new file mode 100644 index 00000000..e873ae9d --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php @@ -0,0 +1,26 @@ +<?php
+
+class ActiveControlExpressionTag extends TPage
+{
+ public function button1_clicked($sender, $param)
+ {
+ $this->subpanel1->Visible = true;
+ $data = array('1', 'two');
+ $this->repeater1->DataSource = $data;
+ $this->repeater1->dataBind();
+ }
+
+ public function button1_callback($sender, $param)
+ {
+ $this->panel1->renderControl($param->NewWriter);
+ $this->button2->Enabled=true;
+ }
+
+ public function button2_callback($sender, $param)
+ {
+ $this->panel2->Visible=true;
+ $this->Page->CallbackClient->insertContentAfter('contents', $this->panel2);
+ }
+}
+
+?>
\ No newline at end of file |