Export (0) Print
Expand All

AjaxHelper.JavaScriptStringEncode Method

.NET Framework 4

Serializes the specified message and returns the resulting JSON-formatted string.

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

public string JavaScriptStringEncode(
	string message
)

Parameters

message
Type: System.String
The message to serialize.

Return Value

Type: System.String
The serialized message as a JSON-formatted string.

Community Additions

ADD
Show:
© 2014 Microsoft