var rows = document.getElementById("<%= grdSnd.ClientID %>").rows; for (var i = 1; i < rows.length; i++) { hesCode = rows[i].cells[0].getElementsByTagName("input")[0].value + rows[i].cells[1].getElementsByTagName("input")[0].value + rows[i].cells[2].getElementsByTagName("input")[0].value IsValidHesNo(hesCode, function (res) { alert(res); }); } function IsValidHesNo(hesCode, callBack) { $.ajax({ type: "post", contentType: "application/json; charset=utf-8", data: "{'hesCode':'" + hesCode + "'}", url: "insertSanad.aspx/IsValidHesNo", dataType: "json", success: function (response) { callBack(response.d); }, Error: function () { callBack(""); } }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)