I'm making an AJAX application in VB.NET that shows the records of a query in a gridview, so far I can only show the data in a JSON string but I do not know how to show them in a gridview or a table.
Currently he only shows me this:
My JavaScript code is:
<script type="text/javascript">
$(document).ready(function () {
$('#btnmostrar').click(function (e) {
e.preventDefault();
$.ajax({
type: "POST",
url: "Default.aspx/Mostrar",
data: null,
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
success: function (resultado) {
$('#msg').html(JSON.stringify(resultado));
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest + " " + textStatus + " " + errorThrown);
}
});
});
});
</script>