summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Expression.page
diff options
context:
space:
mode:
authorxue <>2006-04-07 03:32:11 +0000
committerxue <>2006-04-07 03:32:11 +0000
commit370c682479edb2fd3f40ee701f7bb4ef088e8283 (patch)
treed5fee37ac2b40a3a984bf860bce09562a8532040 /demos/quickstart/protected/pages/Controls/Expression.page
parent8b7717c06b86262d188827fb26a4bfb2e480c256 (diff)
Breaking change!! Optimized the representation and evaluation of template expression, statements and databind tags.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Expression.page')
-rw-r--r--demos/quickstart/protected/pages/Controls/Expression.page13
1 files changed, 2 insertions, 11 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Expression.page b/demos/quickstart/protected/pages/Controls/Expression.page
index c87f0ba4..80a45a3a 100644
--- a/demos/quickstart/protected/pages/Controls/Expression.page
+++ b/demos/quickstart/protected/pages/Controls/Expression.page
@@ -4,23 +4,14 @@
<com:DocLink ClassPath="System.Web.UI.WebControls.TExpression" />
<p>
-<tt>TExpression</tt> evaluates a PHP expression and displays the evaluation result. To specify the expression to be evaluated, set the <tt>Expression</tt> property. In a control template, <a href="?page=Configurations.Templates2#et">expression tags</a> are often used instead of the complete <a href="?page=Configurations.Templates1#ct">component tags</a> when the main purpose is to display the evaluation result of some PHP expression. For example, the following two tags are equivalent,
-</p>
-<com:TTextHighlighter Language="prado" CssClass="source">
-&lt;com:TExpression Expression="date()" /&gt;
-&lt;%= date() %&gt;
-</com:TTextHighlighter>
-
-<p>
-<tt>TExpression</tt> evaluates the expression during the rendering control lifecycle.
+<tt>TExpression</tt> evaluates a PHP expression and displays the evaluation result. To specify the expression to be evaluated, set the <tt>Expression</tt> property. Note, <tt>TExpression</tt> evaluates the expression during the rendering control lifecycle.
</p>
<p>
-The context of the expression in a <tt>TExpression</tt> control is the control itself. That is, <tt>$this</tt> represents the control object if it is present in the expression. For example, both of the following template tags will display the title of the page containing the <tt>TExpression</tt> control.
+The context of the expression in a <tt>TExpression</tt> control is the control itself. That is, <tt>$this</tt> represents the control object if it is present in the expression. For example, the following template tag will display the title of the page containing the <tt>TExpression</tt> control.
</p>
<com:TTextHighlighter Language="prado" CssClass="source">
&lt;com:TExpression Expression="$this->Page->Title" /&gt;
-&lt;%= $this->Page->Title %&gt;
</com:TTextHighlighter>
<p>