summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorxue <>2005-12-04 04:25:45 +0000
committerxue <>2005-12-04 04:25:45 +0000
commit0dda82c2a13ed09a2520dda9b420e8f90703c67b (patch)
tree27815328ce64437ff5e34cb163557d365b316abc /demos
parent3ea63072225a473239227facfabde294bb58ed1d (diff)
Diffstat (limited to 'demos')
-rw-r--r--demos/controls/protected/pages/HomePage.php1
-rw-r--r--demos/controls/protected/pages/HomePage.tpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php
index 7339f364..334c826c 100644
--- a/demos/controls/protected/pages/HomePage.php
+++ b/demos/controls/protected/pages/HomePage.php
@@ -15,6 +15,7 @@ class HomePage extends TPage
$sender->BackColor='blue';
else
$sender->BackColor='';
+ $this->TextBox->focus();
}
}
diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl
index eaa9179b..f3860d5b 100644
--- a/demos/controls/protected/pages/HomePage.tpl
+++ b/demos/controls/protected/pages/HomePage.tpl
@@ -4,7 +4,7 @@
<com:THiddenField Value="test" />
<h1>Welcome! <%=$this->User->Name %></h1>
<com:TLiteral Text="<literal>" Encode="true"/>
-<com:TTextBox Text="textbox" />
+<com:TTextBox ID="TextBox" Text="textbox" />
<com:TLabel Text="test" AssociatedControlID="checkbox"/><br/>
<com:System.Web.UI.WebControls.TButton text="Toggle Button" ForeColor="red" Font.size="18" Click="testClick" /> (requires membership)<br/>
<com:TCheckBox Text="Checkbox" ID="checkbox"/><br/>