Hi,
How to sql server bind the data in table after table selected row data get in angularjs
I am trying this concept below my code:
HTML Code:
Start Date | End Date | --%>Start Date : <%-- Please Enter the StartDate--%> | To Date : |
S.No. | Stud id | Student Nname | Trackid | Crbillno | Txnid | Date | Bank_txn | Withoutcharges | Withcharges | Paymentmode | Result | TransactionType | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{$index +1}} | {{product.Stud_id}} | {{product.stud_name}} | {{product.Trackid}} | {{product.Crbillno}} | {{product.Txnid}} | {{product.Transactiondate}} | {{product.Banktxn}} | {{product.withoutcharges}} | {{product.withcharges}} | {{product.Paymentmode}} | {{product.Result}} | {{product.TransactionType}} | |
You selected: {{product.Crbillno}}
JavaScriptcode:
var app = angular.module("myApp", []);
app.controller("myCntrl", function ($scope, $http) {
$scope.ProductList;
$scope.selectedRow = null;
$scope.fillProductList = function () {
var httpreq = {
method: 'POST',
url: 'Payment_etails.aspx/GetProductList',
headers: {
'Content-Type': 'application/json; charset=utf-8',
'dataType': 'json'
},
data: { fromdate: $scope.fromdate, todate: $scope.todate }
}
$http(httpreq).success(function (response) {
$scope.ProductList = response.d;
$scope.ProductsItems = [{
Stud_id: response.d,
stud_name: response.d.stud_name
}];
$scope.setClickedRow = function (stud_name) {
$scope.ProductList = stud_name;
}
})
};
});
Result:

Bikesh SrivastavaPosted Sep 5, 2016, 1:14 PM
Manas MohapatraPosted Sep 5, 2016, 8:23 AM