From b196ea0e2e9ab9078022e88326edecf1ba5b2f9f Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 15 Sep 2006 23:49:56 +0000 Subject: Defer render() calls in callback event handler to a later stage. --- .../protected/pages/ActiveControlExpressionTag.php | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveControlExpressionTag.php') 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 @@ +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 -- cgit v1.2.3