Send it to the ASPX As array using LINQ and access it.
return list
.Select(a => new
{
a.column1,
a.column2,
a.column3
}).ToArray();
Access it using JS
var models = (typeof result.d) == 'string' ? eval('(' + result.d + ')') : result.d;
for (var i = 0; i < models.length; i++) {
$("#txtBilldate").val(models[i].column1);
}
source
share