summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes3
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page16
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Home.page6
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page34
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php16
5 files changed, 72 insertions, 3 deletions
diff --git a/.gitattributes b/.gitattributes
index 7254d2f7..c08daf94 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1277,6 +1277,7 @@ demos/quickstart/protected/pages/ActiveControls/ActiveCustomValidator.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveImage.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page -text
+demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page -text
demos/quickstart/protected/pages/ActiveControls/ActivePager.page -text
demos/quickstart/protected/pages/ActiveControls/AutoComplete.page -text
demos/quickstart/protected/pages/ActiveControls/DragDrop.page -text
@@ -1303,6 +1304,8 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.php -text
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page
new file mode 100644
index 00000000..8db4cf34
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page
@@ -0,0 +1,16 @@
+<com:TContent ID="body" >
+
+<h1>TActiveLabel</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveLabel" />
+
+<p class="block-content">
+<tt>TActiveLabel</tt> is the active control counterpart of <tt>TLabel</tt> component. When
+<tt>ActiveControl.EnableUpdate</tt> property is true during a callback request, setting <tt>Text</tt>
+property will also set the text of the label on the client upon callback
+completion. Similarly, setting <tt>ForControl</tt> will also set
+the client-side "for" attribute on the label.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveLabel.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 0490733b..7e0e551a 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Home.page
@@ -54,9 +54,9 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
- * <a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
- represents a label on a Web page.
- The label can be customized via various CSS attributes.
+ <a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
+ represents a label on a Web page.
+ The label can be customized via various CSS attributes.
</li>
<li>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page
new file mode 100644
index 00000000..a1e242d3
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page
@@ -0,0 +1,34 @@
+<com:TContent ID="body">
+
+<h1>TActiveLabel Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+An active label text being set as the result of a callback:
+</td><td class="sampleaction">
+<com:TActiveLabel Text="This is a label" ID="label1"
+/>
+
+<com:TActiveButton
+ Text="click me"
+ OnClick="buttonClicked"
+/>
+</td></tr>
+
+<tr><td class="samplenote">
+Upon button click, the textbox contents will be set on the label. Note that text needs to be properly escaped to avoid html injections:
+</td><td class="sampleaction">
+<com:TActiveTextBox ID="txt2"
+/>
+<com:TActiveButton
+ Text="=>"
+ OnClick="buttonClicked2"
+/>
+<com:TActiveLabel Text="" ID="label2"
+/>
+</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/TActiveLabel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php
new file mode 100644
index 00000000..aa26fbe5
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php
@@ -0,0 +1,16 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->label1->Text="You clicked the button, didn't you?";
+ }
+
+ public function buttonClicked2($sender,$param)
+ {
+ $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text);
+ }
+}
+
+?> \ No newline at end of file