SPEncode.WriteScriptEncode Method
Encodes a string for use in script and writes the string to the HTTP output content stream.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)> _
Public Shared Sub WriteScriptEncode ( _
response As HttpResponse, _
str As String _
)
'Usage
Dim response As HttpResponse
Dim str As StringSPEncode.WriteScriptEncode(response, _
str)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static void WriteScriptEncode(
HttpResponse response,
string str
)
Parameters
response
Type: System.Web.HttpResponseThe System.HttpResponse object for the current HTTP request.
str
Type: System.StringThe string to encode.