a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
96 lines
5.0 KiB
XML
96 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<Type Name="Localize" FullName="System.Web.UI.WebControls.Localize">
|
||
<TypeSignature Language="C#" Value="public class Localize : System.Web.UI.WebControls.Literal" />
|
||
<AssemblyInfo>
|
||
<AssemblyName>System.Web</AssemblyName>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Base>
|
||
<BaseTypeName>System.Web.UI.WebControls.Literal</BaseTypeName>
|
||
</Base>
|
||
<Interfaces />
|
||
<Docs>
|
||
<since version=".NET 2.0" />
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>In this topic:</para>
|
||
<list type="bullet">
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#introduction">Introduction</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
<item>
|
||
<para>
|
||
<format type="text/html">
|
||
<a href="#declarative_syntax">Declarative Syntax</a>
|
||
</format>
|
||
</para>
|
||
</item>
|
||
</list>
|
||
<format type="text/html">
|
||
<a href="#introduction" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Introduction</h2>
|
||
</format>
|
||
<para>Use the <see cref="T:System.Web.UI.WebControls.Localize" /> control to reserve a location on a Web page in which to display localized text. </para>
|
||
<block subset="none" type="note">
|
||
<para>Controls that are outside the body element are ignored.</para>
|
||
</block>
|
||
<para>The <see cref="T:System.Web.UI.WebControls.Localize" /> control inherits from the <see cref="T:System.Web.UI.WebControls.Literal" /> control and is identical to it in every way. The <see cref="T: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 <see cref="T:System.Web.UI.WebControls.Label" /> control allows you to apply a style to the displayed text, the <see cref="T:System.Web.UI.WebControls.Localize" /> control does not. You can programmatically manage the text displayed in the control by setting the <see cref="P:System.Web.UI.WebControls.Literal.Text" /> property, inherited from the <see cref="T:System.Web.UI.WebControls.Literal" /> control.</para>
|
||
<block subset="none" type="note">
|
||
<para>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 <format type="text/html"><a href="f3e7718f-63d0-44a3-bd5f-48cc2059c2a8">Securing Standard Controls</a></format>, <format type="text/html"><a href="6f67973f-dda0-45a1-ba9d-e88532d7dc5b">How to: Protect Against Script Exploits in a Web Application by Applying HTML Encoding to Strings</a></format>, and <format type="text/html"><a href="4ad3dacb-89e0-4cee-89ac-40a3f2a85461">Introduction to Validating User Input in ASP.NET Web Pages</a></format>.</para>
|
||
</block>
|
||
<format type="text/html">
|
||
<a href="#declarative_syntax" />
|
||
</format>
|
||
<format type="text/html">
|
||
<h2>Declarative Syntax</h2>
|
||
</format>
|
||
<code><asp:Localize
|
||
EnableTheming="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
EnableViewState="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
ID="string"
|
||
Mode="<codeFeaturedElement>Transform</codeFeaturedElement>|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="<codeFeaturedElement>True</codeFeaturedElement>|False"
|
||
/></code>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Reserves a location on a Web page in which to display localized static text. </para>
|
||
</summary>
|
||
</Docs>
|
||
<Members>
|
||
<Member MemberName=".ctor">
|
||
<MemberSignature Language="C#" Value="public Localize ();" />
|
||
<MemberType>Constructor</MemberType>
|
||
<Parameters />
|
||
<Docs>
|
||
<since version=".NET 2.0" />
|
||
<remarks>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Use this constructor to create a new instance of the <see cref="T:System.Web.UI.WebControls.Localize" /> class.</para>
|
||
</remarks>
|
||
<summary>
|
||
<attribution license="cc4" from="Microsoft" modified="false" />
|
||
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.Localize" /> class.</para>
|
||
</summary>
|
||
</Docs>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
</Member>
|
||
</Members>
|
||
</Type> |