HtmlEncode Method (String, TextWriter)
Collapse the table of content
Expand the table of content

HttpServerUtilityBase.HtmlEncode Method (String, TextWriter)

 

When overridden in a derived class, HTML-encodes a string and sends the resulting output to an output stream.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual void HtmlEncode(
	string s,
	TextWriter output
)

Parameters

s
Type: System.String

The string to encode.

output
Type: System.IO.TextWriter

The stream to contain the encoded string.

Exception Condition
NotImplementedException

Always.

The output parameter is passed by reference to the HtmlEncode method. To retrieve the output from the handler after the method completes, you use the properties and methods of the output object. For an example, see HtmlEncode.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft