See Also: Localize Members
In this topic:
Use the System.Web.UI.WebControls.Localize 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 System.Web.UI.WebControls.Localize control inherits from the System.Web.UI.WebControls.Literal control and is identical to it in every way. The System.Web.UI.WebControls.Localize control is used at design time to distinguish static text that can be localized from other static text. Although the System.Web.UI.WebControls.Label control allows you to apply a style to the displayed text, the System.Web.UI.WebControls.Localize control does not. You can programmatically manage the text displayed in the control by setting the Literal.Text property, inherited from the System.Web.UI.WebControls.Literal 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.
Example
<asp:Localize EnableTheming="