J'essaie de renvoyer une table html à partir d'un service Web asp.net, mais je n'arrive pas à comprendre comment obtenir la chaîne renvoyée pour être html. Voici mon appel jquery ...
$.ajax({
type: "POST",
url: "UserService.asmx/PersonTable",
data: "{}",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function(obj) {
alert(obj);
$('#tblPeople').text(obj.d);
},
error: function() {
alert("error");
}
})
retourne la chaîne dans le format que je veux, mais juste écrit la chaîne à l'écran qui est la représentation de chaîne d'une table html. Comment puis-je obtenir la table Html réelle à rendre?