Hello,
On using jQuery ajax on ASP.Net, we are required to pass the DATA through a string-ed json on the parameters needed. My only concern with this is with strings that has single & double quotes. I tried doing a replace on these and insert escape characters but unfortunately it just doesn't work.
help!
UPDATE
var relativeName = $('#<%= txtRelativeName.ClientID %>').val().replace("'", "\'");
$.ajax({ data: "{ relativeName: '" + relativeName + "'" });