<script type="text/javascript"> $(document).ready(function () { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebForm3.aspx/BindDatatable", data: "{}", dataType: "json", success: function (data) { for (var i = 0; i < data.d.length; i++) { $("#gvDetails").append("<table><tbody><tr><td>" + (data.d[i].Consumption) + "</td><td>" + (data.d[i].MeterTimestamp) + "</td></tr></tbody></table>"); } }, error: function (result) { alert("Error"); } }); }); </script>
$('#<%= txtProductName.ClientID %>')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)