summaryrefslogtreecommitdiff
path: root/demos/controls/protected
diff options
context:
space:
mode:
authorxue <>2005-12-06 18:59:31 +0000
committerxue <>2005-12-06 18:59:31 +0000
commitfa1bc21a7f5346c702490dffbe3cf3f9940b3cd0 (patch)
tree79bf8f120f89e26b6c810bfa4ee136f50de1ee00 /demos/controls/protected
parent10ae6ed6ee263644d3d7780153520af76215d178 (diff)
Diffstat (limited to 'demos/controls/protected')
-rw-r--r--demos/controls/protected/pages/HomePage.php5
-rw-r--r--demos/controls/protected/pages/HomePage.tpl2
2 files changed, 6 insertions, 1 deletions
diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php
index d7f7e1be..d599dd95 100644
--- a/demos/controls/protected/pages/HomePage.php
+++ b/demos/controls/protected/pages/HomePage.php
@@ -18,6 +18,11 @@ class HomePage extends TPage
$this->TextBox->focus();
}
+ public function clickImage($sender,$param)
+ {
+ $this->TextBox->Text="You Clicked (".$param->X.", ".$param->Y.")";
+ }
+
public function linkClicked($sender,$param)
{
$sender->Text="Hello World";
diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl
index 9cb24d3f..d3cc53df 100644
--- a/demos/controls/protected/pages/HomePage.tpl
+++ b/demos/controls/protected/pages/HomePage.tpl
@@ -10,7 +10,7 @@
<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/>
<com:TImage ImageUrl=<%~/fungii_logo.gif %> />
-<com:TImageButton ImageUrl=<%~/fungii_logo.gif %> /><br/>
+<com:TImageButton ImageUrl=<%~/fungii_logo.gif %> Click="clickImage"/><br/>
<com:THyperLink Text="Visit a 'classless' page" NavigateUrl="?sp=page.plain" /> |
<com:THyperLink Text="Visit member only page" NavigateUrl="?sp=page.private.member" />
<com:TLinkButton Text="Click Me" Click="linkClicked" OnClientClick="javascript:alert('you hit me')"/>