TLiteral reserves a location on the Web page to display static text or body content. The TLiteral control is similar to the TLabel control, except the TLiteral control does not allow you to apply a style to the displayed text. You can programmatically control the text displayed in the control by setting the Text property. If the Text property is empty, the content enclosed within the TLiteral control will be displayed. This is very useful for reserving a location on a page because you can add text and controls as children of TLiteral control and they will be rendered at the place.
Note, Text is not HTML encoded before it is displayed in the TLiteral component. If the values for the component come from user input, be sure to validate the values to help prevent security vulnerabilities.
Namespace: System.Web.UI.WebControls
Properties
Text, string, kept in viewstate
Gets or sets the text of TLiteral component.