summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-01 22:14:00 +0000
committerctrlaltca@gmail.com <>2011-06-01 22:14:00 +0000
commit67666aaccb4b4743a084b214722e1173e827e9d1 (patch)
treee0b6204f917845f382c33bcbe5c2a6822e856020 /demos/quickstart/protected/pages/ActiveControls
parent6521eecc250d756a9bb1a8b2f9a2c6a579accadd (diff)
upported recent documentation changes from branch/3.1 to trunk/
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls')
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveImage.page16
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page17
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page16
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page19
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page14
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActivePanel.page24
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page20
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page15
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Home.page60
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html8
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page20
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php17
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gifbin0 -> 1602 bytes
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gifbin0 -> 662 bytes
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page49
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php18
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gifbin0 -> 1602 bytes
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page34
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php16
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page46
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php14
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page37
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php15
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page24
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php21
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page82
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php27
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page31
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php16
29 files changed, 648 insertions, 28 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page
new file mode 100644
index 00000000..8cce8c9e
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page
@@ -0,0 +1,16 @@
+<com:TContent ID="body" >
+
+<h1>TActiveImage</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveImage" />
+
+<p class="block-content">
+<tt>TActiveImage</tt> is the active control counter part to <tt>TImage</tt>. <tt>TActiveImage</tt> displays an image on a page. The image is specified via the <tt>ImageUrl</tt> property which takes a relative or absolute URL to the image file. The alignment of the image displayed is set by the <tt>ImageAlign</tt> property. To set alternate text or long description of the image, use <tt>AlternateText</tt> or <tt>DescriptionUrl</tt>, respectively.
+</p>
+
+<p class="block-content">
+TActiveImage allows the <tt>AlternateText</tt>, <tt>ImageAlign</tt>, <tt>ImageUrl</tt>
+and <tt>DescriptionUrl</tt> to be updated during a callback request.
+</p>
+<com:RunBar PagePath="ActiveControls.Samples.TActiveImage.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page
new file mode 100644
index 00000000..44b988dd
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page
@@ -0,0 +1,17 @@
+<com:TContent ID="body" >
+
+<h1>TActiveImageButton</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveImageButton" />
+
+<p class="block-content">
+<tt>TActiveImageButton</tt> is the active counterpart of <tt>TImageButton</tt>.
+When a <tt>TActiveImageButton</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 raised <b>after</b> the <tt>OnClick</tt> event.
+</p>
+
+<p class="block-content">
+<tt>TActiveImageButton</tt> is similar to <tt>TActiveButton</tt>, except that <tt>TActiveImageButton</tt> displays the button as an image. The image is specified via <tt>ImageUrl</tt>, and the alternate text is specified by <tt>Text</tt>. In addition, it is possible to obtain the coordinate of the point where the image is clicked. The coordinate information is contained in the event parameter of the <tt>OnClick</tt> event (not <tt>OnCallback</tt>).
+</p>
+<com:RunBar PagePath="ActiveControls.Samples.TActiveImageButton.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
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/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/ActiveMultiView.page b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page
new file mode 100644
index 00000000..a9553646
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page
@@ -0,0 +1,14 @@
+<com:TContent ID="body" >
+
+<h1>TActiveMultiView</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveMultiView" />
+
+<p class="block-content">
+<tt>TActiveMultiView</tt> is the active counterpart to the original <tt>TMultiView</tt> control.
+<tt>TActiveMultiView</tt> serves as a container for a group of <tt>TView</tt> controls, which can be retrieved by the <tt>Views</tt> property. Each view contains child controls. <tt>TActiveMultiView</tt> determines which view and its child controls are visible. At any time, at most one view is visible (called <i>active</i>). To make a view active, set <tt>ActiveView</tt> or <tt>ActiveViewIndex</tt>. Note, by default there is no active view.
+<tt>TActiveMultiView</tt> is able to render itself on Callback when <tt>ActiveView</tt> or <tt>ActiveViewIndex</tt> properties are changed.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveMultiView.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page
new file mode 100644
index 00000000..dcfbc312
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page
@@ -0,0 +1,24 @@
+<com:TContent ID="body" >
+
+<h1>TActivePanel</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActivePanel" />
+
+<p class="block-content">
+
+<tt>TActivePanel</tt> is the <tt>TPanel</tt> active control counterpart.
+<tt>TActivePanel</tt> allows the client-side panel contents to be updated during a
+callback response using the <tt>render</tt> method.
+Example: Assume $param is an instance of <tt>TCallbackEventParameter</tt> attached to
+the <tt>OnCallback</tt> event of a <tt>TCallback</tt> with ID "callback1", and
+"panel1" is the ID of a <tt>TActivePanel</tt>.
+
+<com:TTextHighlighter Language="text" CssClass="source block-content">
+function callback1_requested($sender, $param)
+{
+ $this->panel1->render($param->getNewWriter());
+}
+</com:TTextHighlighter>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActivePanel.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page
new file mode 100644
index 00000000..ac6cf5ae
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page
@@ -0,0 +1,20 @@
+<com:TContent ID="body" >
+
+<h1>TRadioButton</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveRadioButton" />
+
+<p class="block-content">
+<tt>TActiveRadioButton</tt> is the active control counter part to <tt>TRadioButton</tt>.
+The <tt>AutoPostBack</tt> property is set to true by default. Thus, when the radio button is clicked a
+<tt>OnCallback</tt> event is raise after <tt>OnCheckedChanged</tt> event.
+</p>
+
+<p class="block-content">
+The <tt>Text</tt> and <tt>Checked</tt> properties can be changed during a callback.
+The <tt>GroupName</tt> property may <b>NOT</b> be changed during callback because the client-side
+<tt>name</tt> attribute is read-only and can not be changed using javascript.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveRadioButton.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page
new file mode 100644
index 00000000..9a508e32
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page
@@ -0,0 +1,15 @@
+<com:TContent ID="body" >
+
+<h1>TActiveTextBox</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveTextBox" />
+
+<p class="block-content">
+<tt>TActiveTextBox</tt> is the active control counterpart of <tt>TTextBox</tt> component.
+<tt>TActiveTextBox</tt> allows the <tt>Text</tt> property of the textbox to
+be changed during callback. When <tt>AutoPostBack</tt> property
+is true, changes to the textbox contents will perform a callback request causing
+<tt>OnTextChanged</tt> to be fired first followed by <tt>OnCallback</tt> event.
+</p>
+<com:RunBar PagePath="ActiveControls.Samples.TActiveTextBox.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 d23f689f..93b5b6eb 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Home.page
@@ -43,29 +43,35 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
- * <a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
+ <a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
represents an image on a Web page.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
+ <a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
represents a click button that has an image as the background.
It is can be used to trigger a callback request.
</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>
+ <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
+ represents a hyperlink that can perform a callback request.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
- represents a hyperlink that can perform a callback request.
+ <a href="?page=ActiveControls.ActiveMultiView">TActiveMultiView</a>
+ represents a container for a group of TView controls, each of which is container for other controls.
+ At any time, at most one TView is visible. It's the active counterpart of TMultiView.
</li>
<li>
- * <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
+ <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
represents a container for other controls on a Web page. In HTML,
it is displayed as a &lt;div&gt; element. The panel's contents
can be replaced during a callback request.
@@ -78,23 +84,17 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
- * <a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
+ <a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
represents a radiobutton on a Web page.
It is mainly used in a group from which users make a choice. It can
be used to perform a callback request.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveTableRow">TActiveTableRow and TActiveTableCell</a>
- represents a table row (or cell) which can be updated on callback, and can raise a callback
- when clicked.
- </li>
-
- <li>
- * <a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
- represents a text input field on a Web page.
- It can collect single-line, multi-line or password text input from users.
- It can be used to perform a callback request.
+ <a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
+ represents a text input field on a Web page.
+ It can collect single-line, multi-line or password text input from users.
+ It can be used to perform a callback request.
</li>
<li>
@@ -109,7 +109,7 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
<li>
* <a href="?page=ActiveControls.ActiveCheckBoxList">TActiveCheckBoxList</a>
displays a list of checkboxes on a Web page and each checkbox
- can trigger a callback request.
+ can trigger a callback request.
</li>
<li>
@@ -131,23 +131,27 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
TActiveRadioButtonList displays a group of radiobuttons. Each radio button
can perform a callback request.
</li>
+</ul>
+<h2 id="134001">Active Data Controls</h2>
+<ul id="u2" class="block-content">
<li>
- * <a href="?page=ActiveControls.ActiveRepeater">TActiveRepeater</a>
- is the active counterpart of TRepeater, which can be updated during a callback request
+ * <a href="?page=ActiveControls.ActiveDataList">TActiveDataList</a>
+ is used to display or modify a list of data items. It is the
+ active counterpart to the original TDataList control.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveDataList">TActiveDataList</a>
- is the active counterpart of TDataList
+ * <a href="?page=ActiveControls.ActiveDataGrid">TActiveDataGrid</a>
+ displays data in a tabular format with rows and columns. It is the
+ active counterpart to the original TDataGrid control.
</li>
-
<li>
- * <a href="?page=ActiveControls.ActiveDataList">TActiveDataGrid</a>
- is the active counterpart of TDataGrid
+ * <a href="?page=ActiveControls.ActiveRepeater">TActiveRepeater</a>
+ displays its content defined in templates repeatedly based on the given data.
+ It is the active counterpart to the original TRepeater control.
</li>
-
</ul>
<h2 id="128034">Extended Active Controls</h2>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html
new file mode 100644
index 00000000..3a319a1b
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+<title>Hello World!</title>
+</head>
+<body>
+This is Hello World long description file!
+</body>
+</html> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page
new file mode 100644
index 00000000..02cc3446
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page
@@ -0,0 +1,20 @@
+<com:TContent ID="body">
+
+<h1>TActiveImage Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+<tt>ImageUrl</tt> being changed on callback request:
+</td><td class="sampleaction">
+<com:TActiveImage
+ ID="imageTest"
+ ImageUrl=<%~hello_world.gif%>
+ AlternateText="Hello World!"/>
+<com:TActiveButton OnCallback="buttonClicked" Text="First hello world image"/>
+<com:TActiveButton OnCallback="buttonClicked2" Text="Second hello world image"/>
+</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/TActiveImage/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php
new file mode 100644
index 00000000..3628ad0a
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php
@@ -0,0 +1,17 @@
+<?php
+
+// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
+class Home extends TPage
+{
+ public function buttonClicked($sender, $param)
+ {
+ $this->imageTest->ImageUrl=$this->publishAsset("hello_world.gif");
+ }
+
+ public function buttonClicked2($sender, $param)
+ {
+ $this->imageTest->ImageUrl=$this->publishAsset("hello_world2.gif");
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif
new file mode 100644
index 00000000..bc81443c
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif
Binary files differ
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif
new file mode 100644
index 00000000..a8c73cf6
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif
Binary files differ
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page
new file mode 100644
index 00000000..8277a8cb
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page
@@ -0,0 +1,49 @@
+<com:TContent ID="body">
+
+<h1>TActiveImageButton Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+A click image button showing the click location:
+</td><td class="sampleaction">
+<com:TActiveImageButton
+ ImageUrl=<%~ hello_world.gif %>
+ Text="hello world"
+ OnClick="buttonClicked"
+ />
+<com:TActiveLabel ID="Result" />
+</td></tr>
+
+<tr><td class="samplenote">
+A callback image button:
+</td><td class="sampleaction">
+<com:TActiveImageButton
+ ImageUrl=<%~ hello_world.gif %>
+ Text="hello world"
+ OnCallback="buttonClicked"
+ ActiveControl.CallbackParameter="value"
+ />
+<com:TActiveLabel ID="Result2" />
+</td></tr>
+
+<tr><td class="samplenote">
+An image button causing validation:
+</td><td class="sampleaction">
+<com:TActiveTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ Display="Dynamic"
+ ErrorMessage="input required in the textbox"
+ ValidationGroup="Group"
+ />
+<com:TActiveImageButton
+ ImageUrl=<%~ hello_world.gif %>
+ Text="hello world"
+ 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/TActiveImageButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php
new file mode 100644
index 00000000..b1f2c53b
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php
@@ -0,0 +1,18 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($param instanceof TCallbackEventParameter)
+ {
+ $this->Result2->Text="Callback parameter: $param->CallbackParameter";
+ }
+ else
+ {
+ $this->Result->Text="You clicked at ($param->X,$param->Y)";
+ }
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif
new file mode 100644
index 00000000..bc81443c
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif
Binary files differ
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
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
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page
new file mode 100644
index 00000000..6888ad78
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page
@@ -0,0 +1,37 @@
+<com:TContent ID="body">
+
+<h1>TActiveMultiView Samples</h1>
+
+<com:TActiveMultiView ID="MultiView" ActiveViewIndex="0" OnActiveViewChanged="viewChanged">
+ <com:TView ID="View1">
+ <h2>View 1</h2>
+ <p>Please enter a memo:</p>
+ <com:TActiveTextBox ID="Memo" />
+ <hr/>
+ <com:TActiveButton Text="View 2" CommandName="NextView" />
+ <com:TActiveButton Text="View 3" CommandName="SwitchViewIndex" ActiveControl.CallbackParameter="2" />
+ </com:TView>
+ <com:TView>
+ <h2>View 2</h2>
+ <p>Please choose a color:</p>
+ <com:TActiveDropDownList ID="DropDownList">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ </com:TActiveDropDownList>
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="PreviousView" />
+ <com:TActiveButton Text="View 3" CommandName="NextView" />
+ </com:TView>
+ <com:TView>
+ <h2>View 3</h2>
+ <com:TActiveLabel ID="Result1" />
+ <br/>
+ <com:TActiveLabel ID="Result2" />
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="SwitchViewID" ActiveControl.CallbackParameter="View1" />
+ <com:TActiveButton Text="View 2" CommandName="PreviousView" />
+ </com:TView>
+</com:TActiveMultiView>
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php
new file mode 100644
index 00000000..1a5dbed3
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php
@@ -0,0 +1,15 @@
+<?php
+
+class Home extends TPage
+{
+ public function viewChanged($sender,$param)
+ {
+ if($this->MultiView->ActiveViewIndex===2)
+ {
+ $this->Result1->Text="Your text input is: ".$this->Memo->Text;
+ $this->Result2->Text="Your color choice is: ".$this->DropDownList->SelectedValue;
+ }
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page
new file mode 100644
index 00000000..1fb7ca23
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page
@@ -0,0 +1,24 @@
+<com:TContent ID="body">
+
+<h1>TActivePanel Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Active panel updated on callback:
+</td><td class="sampleaction">
+<com:TActivePanel ID="panel1" BackColor="#CCFFCC" DefaultButton="button1" Width="400px">
+This is panel content
+<br/>a checkbox: <com:TCheckBox ID="check1"/>
+<br/>a textbox: <com:TTextBox ID="txt1"/>
+<br/>a label: <com:TLabel ID="label1"/>
+<br/><com:TActiveButton ID="button1" Text="click me" OnCallback="buttonClicked" />
+<br/>
+When you press the button, the panel contents will change. Note that out of the
+panel and the button, all the other controls are not active but gets updated
+anyway since they are placed inside the active panel.
+</com:TActivePanel>
+</td></tr>
+</table>
+<com:TJavascriptLogger />
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php
new file mode 100644
index 00000000..ae174f59
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php
@@ -0,0 +1,21 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->check1->Checked = !$this->check1->Checked;
+ if($this->txt1->Text=="")
+ $this->txt1->Text="changes happens";
+ else
+ $this->txt1->Text="";
+ if($this->label1->Text=="")
+ $this->label1->Text="label has changed, too";
+ else
+ $this->label1->Text="";
+
+ $this->panel1->render($param->NewWriter);
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page
new file mode 100644
index 00000000..13b7853c
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page
@@ -0,0 +1,82 @@
+<com:TContent ID="body">
+
+<h1>TActiveRadioButton Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+A callback radiobutton:
+</td><td class="sampleaction">
+<com:TActiveRadioButton
+ Text="click me"
+ OnCheckedChanged="radiobuttonClicked"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A radiobutton causing validation on a textbox:
+</td><td class="sampleaction">
+<com:TActiveTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ Display="Dynamic"
+ ErrorMessage="input required in the textbox"
+ ValidationGroup="Group"
+ />
+<com:TActiveRadioButton
+ Text="submit"
+ AutoPostBack="true"
+ ValidationGroup="Group"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A radiobutton validated by a required field validator:
+</td><td class="sampleaction">
+<com:TActiveRadioButton
+ ID="RadioButton"
+ Text="Consent"
+ ValidationGroup="Group2"
+ />
+<com:TActiveButton Text="Submit" ValidationGroup="Group2" />
+<com:TRequiredFieldValidator
+ ControlToValidate="RadioButton"
+ Display="Dynamic"
+ ErrorMessage="You must consent."
+ ValidationGroup="Group2"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A radiobutton group:
+</td><td class="sampleaction">
+<com:TActiveRadioButton
+ ID="Radio1"
+ GroupName="RadioGroup"
+ Text="Option 1"
+ OnCallback="selectRadioButton"
+ />
+<com:TActiveRadioButton
+ ID="Radio2"
+ GroupName="RadioGroup"
+ Text="Option 2"
+ OnCallback="selectRadioButton"
+ />
+<com:TActiveRadioButton
+ ID="Radio3"
+ GroupName="RadioGroup"
+ Text="Option 3"
+ OnCallback="selectRadioButton"
+ />
+<com:TActiveRadioButton
+ ID="Radio4"
+ Text="Option 4 (in a different group)"
+ OnCallback="selectRadioButton"
+ />
+<br/>
+<com:TActiveLabel ID="Result" />
+</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/TActiveRadioButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php
new file mode 100644
index 00000000..034d2fcc
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php
@@ -0,0 +1,27 @@
+<?php
+
+class Home extends TPage
+{
+ public function radiobuttonClicked($sender,$param)
+ {
+ $sender->Text="I'm clicked";
+ }
+
+ public function selectRadioButton($sender,$param)
+ {
+ $selection='';
+ if($this->Radio1->Checked)
+ $selection.='1';
+ if($this->Radio2->Checked)
+ $selection.='2';
+ if($this->Radio3->Checked)
+ $selection.='3';
+ if($this->Radio4->Checked)
+ $selection.='4';
+ if($selection==='')
+ $selection='empty';
+ $this->Result->Text='Your selection is '.$selection;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page
new file mode 100644
index 00000000..b4ea8afc
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page
@@ -0,0 +1,31 @@
+<com:TContent ID="body">
+
+<h1>TActiveTextBox Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+An active textbox being set as the result of a callback:
+</td><td class="sampleaction">
+<com:TActiveTextBox Text="Sample content" ID="txt1"
+/>
+
+<com:TActiveButton
+ Text="click me"
+ OnClick="buttonClicked"
+/>
+</td></tr>
+
+<tr><td class="samplenote">
+An active textbox with AutoPostBack="true"; Pressing Enter/Return, 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" AutoPostBack="true" OnTextChanged="textChanged"
+/>
+<com:TActiveLabel Text="" ID="label2"
+/>
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id: Home.page 2946 2011-06-01 21:01:57Z ctrlaltca@gmail.com $</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php
new file mode 100644
index 00000000..1993b78d
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php
@@ -0,0 +1,16 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->txt1->Text="You clicked the button, didn't you?";
+ }
+
+ public function textChanged($sender,$param)
+ {
+ $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text);
+ }
+}
+
+?> \ No newline at end of file