|
A Literal control is used to display text. You cannot apply a style to a literal control.
This control will pass the content directly to the client browser, unless you use the Mode property to encode the content.
Simple Literal control
The following example demonstrates how to use the Literal control to display static text.
VB Literal1.aspx
Encode Literal control
By setting the Mode property to Encode, the Literal control will encode the content of the Text property.
VB Literal2.aspx
|