Export (0) Print
Expand All

SPEncode methods

The SPEncode type exposes the following members.

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member HtmlDecode Decodes the specified encoded string, replacing entities with HTML characters.
Public method Static member HtmlEncode Encodes the specified string so that special characters used in HTML are encoded as HTML entities.
Public method Static member HtmlEncodePreserveSpaces Encodes the specified string so that special characters used in HTML are encoded as HTML entities but spaces are preserved.
Public method Static member IsLegalCharInUrl Returns a Boolean value that indicates whether the specified character is a legal character in Universal Resource Locator (URL) protocol.
Protected method MemberwiseClone (Inherited from Object.)
Public method Static member NoEncode Applies no encoding to the specified string.
Public method Static member ScriptEncode Encodes a string for use in script.
Public method ToString (Inherited from Object.)
Public method Static member UrlDecodeAsUrl Decodes the encoded Universal Resource Locator (URL) string, removing quoted UTF-8 formatting for special characters.
Public method Static member UrlEncode Encodes the specified string, converting special characters to quoted UTF-8 format.
Public method Static member UrlEncodeAsUrl(String) Encodes the specified string, converting special characters to quoted UTF-8 format, but assumes that the string is a path component of a URL.
Public method Static member UrlEncodeAsUrl(String, Boolean) Encodes the specified string, converting special characters to quoted UTF-8 format, but assumes that the string is a path component of a URL and encodes Unicode characters only if the encodeUnicodeCharacters parameter is true.
Public method Static member WriteHtmlEncode Encodes the specified string so that characters in embedded HTML tags are displayed as text in the browser, and writes the string to the HTTP output content stream.
Public method Static member WriteHtmlEncodePreserveSpaces Encodes the specified string so that characters in embedded HTML tags are displayed as text in the browser and writes the string to the HTTP output content stream, but preserves multiple spaces within the string.
Public method Static member WriteHtmlEncodePreserveSpacesWithQuote Encodes the specified string so that characters in embedded HTML tags are displayed as text in the browser and writes the string to the HTTP output content stream, but preserves multiple spaces within the string and surrounds the string with quotation marks.
Public method Static member WriteHtmlEncodeWithQuote Encodes the specified string so that characters in embedded HTML tags are displayed as text in the browser, and writes the string in quotation marks to the HTTP output content stream.
Public method Static member WriteNoEncode(HttpResponse, Decimal) Applies no encoding to the specified decimal value and writes the value to the HTTP output content stream.
Public method Static member WriteNoEncode(HttpResponse, Int32) Applies no encoding to the specified integer and writes the integer to the HTTP output content stream.
Public method Static member WriteNoEncode(HttpResponse, String) Applies no encoding to the specified string and writes the string to the HTTP output content stream.
Public method Static member WriteNoEncodeWithQuote(HttpResponse, Decimal, Char) Applies no encoding to the specified decimal value and writes the value in quotation marks to the HTTP output content stream.
Public method Static member WriteNoEncodeWithQuote(HttpResponse, Int32, Char) Applies no encoding to the specified integer and writes the integer in quotation marks to the HTTP output content stream.
Public method Static member WriteNoEncodeWithQuote(HttpResponse, String, Char) Applies no encoding to the specified string and writes the string in quotation marks to the HTTP output content stream.
Public method Static member WriteScriptEncode Encodes a string for use in script and writes the string to the HTTP output content stream.
Public method Static member WriteScriptEncodeWithQuote Encodes a string for use in script and writes the string in quotation marks to the HTTP output content stream.
Public method Static member WriteUrlEncode Encodes the specified string, converting special characters to quoted UTF-8 format, and writes the string to the HTTP output content stream.
Public method Static member WriteUrlEncodeAsUrl Encodes the specified string and writes it to the HTTP output content stream, converting special characters to quoted UTF-8 format, but assumes that the string is a path component of a Universal Resource Locator (URL).
Public method Static member WriteUrlEncodeAsUrlWithQuote Encodes the specified string and writes it in quotation marks to the HTTP output content stream, converting special characters to quoted UTF-8 format, but assumes that the string is a path component of a URL.
Public method Static member WriteUrlEncodeWithQuote Encodes the specified string, converting special characters to quoted UTF-8 format, and writes the string in quotation marks to the HTTP output content stream.
Public method Static member XmlRemoveControlChars Encodes the specified XML string and removes control characters.
Top
Show:
© 2014 Microsoft