summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Literal.page
blob: 30a8488076db9da4a2d4eb731cd0d2897f842fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<com:TContent ID="body" >

<h1>TLiteral</h1>
<com:DocLink ClassPath="System.Web.UI.WebControls.TLiteral" />

<p>
<tt>TLiteral</tt> displays a static text on a Web page. <tt>TLiteral</tt> is similar to the <tt>TLabel</tt> control, except that the <tt>TLiteral</tt>
 * control has no style properties, such as <tt>BackColor</tt>, <tt>Font</tt>, etc.
</p>

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

<p>
<tt>TLiteral</tt> will render the contents enclosed within its component tag if <tt>Text</tt> is empty.
</p>

<p>
Be aware, if <tt>Encode</tt> is false, make sure <tt>Text</tt> does not contain unwanted characters that may bring security vulnerabilities.
</p>

<com:RunBar PagePath="Controls.Samples.TLiteral.Home" />

</com:TContent>