From 84cd815b93ddbb19c3f1314b7135b1c373ce421c Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 27 Mar 2006 04:33:13 +0000 Subject: Added TLiteral, TPlaceHolder demos. --- .gitattributes | 3 +++ demos/quickstart/protected/pages/Controls/Literal.page | 15 +++++++++++++++ .../quickstart/protected/pages/Controls/PlaceHolder.page | 6 ++++++ .../protected/pages/Controls/Samples/TLiteral/Home.page | 13 +++++++++++++ .../pages/Controls/Samples/TPlaceHolder/Home.page | 11 +++++++++++ .../pages/Controls/Samples/TPlaceHolder/Home.php | 16 ++++++++++++++++ demos/quickstart/protected/pages/Controls/Standard.page | 4 ++-- 7 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php diff --git a/.gitattributes b/.gitattributes index bfe295c5..65ec8a99 100644 --- a/.gitattributes +++ b/.gitattributes @@ -200,9 +200,12 @@ demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.php -text +demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TPanel/hello_world.gif -text +demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page -text +demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page -text diff --git a/demos/quickstart/protected/pages/Controls/Literal.page b/demos/quickstart/protected/pages/Controls/Literal.page index edf3bf09..d7b44aff 100644 --- a/demos/quickstart/protected/pages/Controls/Literal.page +++ b/demos/quickstart/protected/pages/Controls/Literal.page @@ -3,4 +3,19 @@

TLiteral

+

+TLiteral displays a static text on a Web page. TLiteral is similar to the TLabel control, except that the TLiteral + * control does not allow child controls and has no style properties, such as BackColor, Font, etc. +

+ +

+The text displayed by TLiteral can be programmatically controlled by setting the Text property. The text displayed may be HTML-encoded if the Encode is true (the default value is false). +

+ +

+Be aware, if Encode is false, make sure Text does not contain unwanted characters that may bring security vulnerabilities. +

+ + + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/PlaceHolder.page b/demos/quickstart/protected/pages/Controls/PlaceHolder.page index 1291c149..323b1d52 100644 --- a/demos/quickstart/protected/pages/Controls/PlaceHolder.page +++ b/demos/quickstart/protected/pages/Controls/PlaceHolder.page @@ -3,4 +3,10 @@

TPlaceHolder

+

+TPlaceHolder reserves a place on a template, where static texts or controls may be dynamically inserted. +

+ + + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page new file mode 100644 index 00000000..118d1627 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page @@ -0,0 +1,13 @@ + + +

TLiteral Sample

+ +

+ +

+ +

+ +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page new file mode 100644 index 00000000..f2b0d372 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page @@ -0,0 +1,11 @@ + + +

TPlaceHolder Sample

+ +

+This sample shows how to insert +at a place that is reserved on a template. The dynamic content can be +either static texts or controls. +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php new file mode 100644 index 00000000..ecae7876 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php @@ -0,0 +1,16 @@ +Text='dynamic'; + $label->BackColor='silver'; + $this->PlaceHolder1->Controls[]=$label; + $this->PlaceHolder1->Controls[]=' content'; + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index d6070986..026d3d1a 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -71,7 +71,7 @@ TLinkButton represents a hyperlink that can perform page postbacks. -
  • * +
  • TLiteral represents a static text without any HTML tag surrounding it on a Web page.
  • @@ -83,7 +83,7 @@ TPanel represents a container for other controls on a Web page. In HTML, it is displayed as a <div> element. -
  • * +
  • TPlaceHolder reserves a place on a control template. It inserts its body content at that place.
  • -- cgit v1.2.3