summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls')
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page19
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Home.page4
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page46
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php14
4 files changed, 81 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page
new file mode 100644
index 00000000..387b40af
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page
@@ -0,0 +1,19 @@
+<com:TContent ID="body" >
+
+<h1>TActiveLinkButton</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveLinkButton" />
+
+<p class="block-content">
+<tt>TActiveLinkButton</tt> is the active control counter part to <tt>TLinkButton</tt>.
+When a <tt>TActiveLinkButton</tt> is clicked, rather than a normal post back request a
+callback request is initiated.
+The <tt>OnCallback</tt> event is raised during a callback request
+and it is raise <b>after</b> the <tt>OnClick</tt> event.
+When the <tt>ActiveControl.EnableUpdate</tt>
+property is true, changing the <tt>Text</tt> property during callback request
+will update the link text upon callback response completion.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveLinkButton.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page
index 110d0660..ac972c6e 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Home.page
@@ -60,8 +60,8 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
- * <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
- represents a hyperlink that can perform a callback request.
+ <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
+ represents a hyperlink that can perform a callback request.
</li>
<li>
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