I have a html table. the rows of this table are generated automatically by aangular js ng-repeat. I want to get values of each row and column of that table in c# codebehind. Here is my aspx code:
<table id="stockTable" runat="server" class="table table-bordered">
<thead>
<tr>
<td>Name</td>
<td>Quantity</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="aMedicine in medicines">
<td>{{aMedicine.Name}}</td>
<td>{{aMedicine.Quantity}}</td>
</tr>
</tbody>
</table>
and script is here:
<script>
var myApplication = angular.module("myApp", []);
var myArray = [];
myApplication.controller("myController", function ($scope) {
$scope.medicines = [];
$scope.AddMedicine = function (name, quantity) {
$scope.medicines.push({ Name: name, Quantity: quantity });
myArray = medicines;
};
});
</script>
how i get the added rows of the table in c# codebehind?
Aucun commentaire:
Enregistrer un commentaire