summaryrefslogtreecommitdiff
path: root/demos/controls/protected/pages
diff options
context:
space:
mode:
authorxue <>2005-12-21 17:06:12 +0000
committerxue <>2005-12-21 17:06:12 +0000
commite08aa82e5e4d2bc06bb8f98654806a15bdefc994 (patch)
treebfd7e9c2ac2cf365d7a22bfa5dbb0f1d63cbd30a /demos/controls/protected/pages
parent2a940b0f6ce13cb612d3db585aaaf3d49b95885a (diff)
Added support to global state.
Diffstat (limited to 'demos/controls/protected/pages')
-rw-r--r--demos/controls/protected/pages/HomePage.php2
-rw-r--r--demos/controls/protected/pages/HomePage.tpl8
-rw-r--r--demos/controls/protected/pages/config.xml3
3 files changed, 5 insertions, 8 deletions
diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php
index 50bdc9e7..1b513aba 100644
--- a/demos/controls/protected/pages/HomePage.php
+++ b/demos/controls/protected/pages/HomePage.php
@@ -14,7 +14,7 @@ class HomePage extends TPage
parent::onLoad($param);
if(!$this->IsPostBack)
{
- $this->dataBind();
+ //$this->dataBind();
}
}
diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl
index d1dd7724..5d016682 100644
--- a/demos/controls/protected/pages/HomePage.tpl
+++ b/demos/controls/protected/pages/HomePage.tpl
@@ -55,10 +55,10 @@
Click="linkClicked"
onclick="javascript:alert('you hit me')"/>
-<!
-<com:TListBox SelectionMode="Multiple">
+
+<com:TListBox SelectionMode="Single" SelectedIndexChanged="testClick" AutoPostBack="true">
<com:TListItem Text="a" Selected="true" />
- <com:TListItem Text="b" />
+ <com:TListItem Text=<%$ adminEmail %> />
<com:TListItem Text="c" />
<com:TListItem Text="d" Selected="true" />
</com:TListBox>
@@ -69,7 +69,7 @@
<com:TListItem Text="c" Selected="true" />
<com:TListItem Text="d" />
</com:TDropDownList>
-!>
+
<%# $this->Page->TextBox->Text %>
</div>
</com:TForm>
diff --git a/demos/controls/protected/pages/config.xml b/demos/controls/protected/pages/config.xml
index c90a6974..ce3ced8a 100644
--- a/demos/controls/protected/pages/config.xml
+++ b/demos/controls/protected/pages/config.xml
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
- <authorization>
- <deny pages="home" users="?" verb="post" />
- </authorization>
<pages Theme="BlueTheme">
<page id="home" class="HomePage" />
<page id="login" class="LoginPage" />