Here Mudassar Ahmed Khan has explained with an example, how to solve the problem when Single Quotes appear in the parameter values when using jQuery AJAX i.e. how to escape Single Quotes when using jQuery AJAX.
The solution to this problem is to serialize the JSON string using JSON2 Stringify method and then pass as parameter to the WebMethod.
↧