System.Web 2.0.0.0 System.Web.UI.WebControls.Literal

In this topic:

Introduction

Declarative Syntax

## Introduction

Use the control to reserve a location on a Web page in which to display localized text.

Controls that are outside the body element are ignored.

The control inherits from the control and is identical to it in every way. The control is used at design time to distinguish static text that can be localized from other static text. Although the control allows you to apply a style to the displayed text, the control does not. You can programmatically manage the text displayed in the control by setting the property, inherited from the control.

This control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see Securing Standard Controls, How to: Protect Against Script Exploits in a Web Application by Applying HTML Encoding to Strings, and Introduction to Validating User Input in ASP.NET Web Pages.

## Declarative Syntax

`<asp:Localize EnableTheming="True|False" EnableViewState="True|False" ID="string" Mode="Transform|PassThrough|Encode" OnDataBinding="DataBinding event handler" OnDisposed="Disposed event handler" OnInit="Init event handler" OnLoad="Load event handler" OnPreRender="PreRender event handler" OnUnload="Unload event handler" runat="server" SkinID="string" Text="string" Visible="True|False" />`

Reserves a location on a Web page in which to display localized static text.

- Constructor

  Use this constructor to create a new instance of the class.

  Initializes a new instance of the class.

  2.0.0.0