$(document).ready(function () { PageMethods.binds(OnsuccI, OnErrI) function OnsuccI(response) { var obj = $.parseJSON(response); var inc = 1; var id = ''; if (obj.length > 0) { var services = obj[0].Table1; var str = ""; var cnt = Number(0); $.each(services, function (index, value) { str += "
"; // str += "
Food & Dining
"; str += "
" + services[index].eventnm + "

" + services[index].venue + "

"; str += "

" + services[index].e_description + "

"; str += "
"; str += "
"; str += "
Detail
"; cnt = cnt + 1; }); $('#trslt').text(cnt); $('#tbody').append(str); } } function OnErrI(response) { } });
Total Events :