Skip to content

Instantly share code, notes, and snippets.

@phpleo
Created December 28, 2011 20:44
Show Gist options
  • Save phpleo/1529641 to your computer and use it in GitHub Desktop.
Save phpleo/1529641 to your computer and use it in GitHub Desktop.
Eliminar el .d de un respuesta ajax en ASP.Net
// http://stackoverflow.com/questions/6998990/problem-with-jquery-validate-plugin-remote-validation
remote: function() {
return {
type: "POST",
url: GetBaseWSUrl() + 'MyService.asmx/IsValidCode',
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify({ umltCode: $('#Code').val() }),
dataFilter: function (data) {
var x = (JSON.parse(data)).d;
return JSON.stringify(x);
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment