This documentation is archived and is not being maintained.
ChtmlTextWriter::WriteEncodedText Method
Visual Studio 2010
Encodes the specified text for the requesting device, and then writes it to the output stream.
Assembly: System.Web (in System.Web.dll)
Parameters
- text
- Type: System::String
The text string to encode and write to the output stream.
If the text parameter passed into the WriteEncodedText method is nullptr or has a length of zero, then nothing is written.
Use the WriteEncodedText method when a string contains angle brackets (< or >) or an ampersand (&) and you want to ensure that they are rendered correctly on the requesting device.
The WriteEncodedText method uses the base class's WriteEncodedText method.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: