summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples
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/Samples
parent6521eecc250d756a9bb1a8b2f9a2c6a579accadd (diff)
upported recent documentation changes from branch/3.1 to trunk/
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples')
-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
20 files changed, 475 insertions, 0 deletions
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