How can I send the value of NewText in its original form from .cs code using an ajax call?
**var NewText ="D'souza";**
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "frmLabel.aspx/getText",
data: **"{newtext:'" + NewText + "'}",**
dataType: "json",
async: false,
success: function (gridData) {
text = gridData.d;
},
error: function (xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(err.Message);
}
});