diff options
author | ctrlaltca@gmail.com <> | 2011-06-01 22:14:00 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-01 22:14:00 +0000 |
commit | 67666aaccb4b4743a084b214722e1173e827e9d1 (patch) | |
tree | e0b6204f917845f382c33bcbe5c2a6822e856020 /demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton | |
parent | 6521eecc250d756a9bb1a8b2f9a2c6a579accadd (diff) |
upported recent documentation changes from branch/3.1 to trunk/
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page | 46 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php | 14 |
2 files changed, 60 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page new file mode 100644 index 00000000..0c896f64 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page @@ -0,0 +1,46 @@ +<com:TContent ID="body">
+
+<h1>TActiveLinkButton Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Link button with only body content:
+</td><td class="sampleaction">
+<com:TActiveLinkButton>
+body content
+</com:TActiveLinkButton>
+</td></tr>
+
+<tr><td class="samplenote">
+A click link button:
+</td><td class="sampleaction">
+<com:TActiveLinkButton Text="click me" OnClick="buttonClicked" />
+</td></tr>
+
+<tr><td class="samplenote">
+A callback link button:
+</td><td class="sampleaction">
+<com:TActiveLinkButton
+ Text="click me"
+ OnCallback="buttonClicked"
+ ActiveControl.CallbackParameter="value"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A button causing validation:
+</td><td class="sampleaction">
+<com:TTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ Display="Dynamic"
+ ErrorMessage="input required in the textbox"
+ ValidationGroup="Group"
+ />
+<com:TActiveLinkButton Text="submit" ValidationGroup="Group" />
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php new file mode 100644 index 00000000..64e2dede --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php @@ -0,0 +1,14 @@ +<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($param instanceof TCallbackEventParameter)
+ $sender->Text="Callback Parameter: {$param->CallbackParameter}";
+ else
+ $sender->Text="I'm clicked";
+ }
+}
+
+?>
\ No newline at end of file |