Código:
Gracias por su tiempo y colaboración. $('#btnTraeCBML').click(function () {
$.ajax({
type: 'POST',
url: 'localhost/ws/ws.asmx/fnConsulta',
data: $("#form").serialize(),
contentType: 'application/json; utf-8',
dataType: 'json',
success: function (data) {
if (data.d != null) {
alert(data.d);
}
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Error: " + errorThrown + " - " + textStatus + " - " + jqXHR);
}
});
});


