From 14e672d372fcde114114e97bdc894f14f34e37a3 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 15 Dec 2005 04:03:34 +0000 Subject: Test for new databinding feature. --- demos/controls/protected/pages/HomePage.php | 9 ++++ demos/controls/protected/pages/HomePage.tpl | 68 ++++++++++++++++++----------- 2 files changed, 51 insertions(+), 26 deletions(-) (limited to 'demos/controls/protected/pages') diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php index d599dd95..50bdc9e7 100644 --- a/demos/controls/protected/pages/HomePage.php +++ b/demos/controls/protected/pages/HomePage.php @@ -9,6 +9,15 @@ class HomePage extends TPage $this->Theme=''; } + public function onLoad($param) + { + parent::onLoad($param); + if(!$this->IsPostBack) + { + $this->dataBind(); + } + } + public function testClick($sender,$param) { if($sender->BackColor==='') diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl index ea5a182c..d1dd7724 100644 --- a/demos/controls/protected/pages/HomePage.tpl +++ b/demos/controls/protected/pages/HomePage.tpl @@ -9,52 +9,68 @@ - -
- (requires membership)
-
-
- /> - + Click="clickImage"/>
- | - - + + + + + + + + + + + + + +!> +<%# $this->Page->TextBox->Text %> \ No newline at end of file -- cgit v1.2.3