共用方式為


WriteScriptEncodeWithQuote Method

The WriteScriptEncodeWithQuote method of the SPEncode class encodes a string for use in script and writes the string in quotation marks to the HTTP output content stream.

Parameters

response   The System.HttpResponse object for the current HTTP request.

str   The string to encode.

quoteChar   A System.Char object that specifies the character to use for quotation marks.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security