Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [{"CustomerName":"Dinesh","product":"23234","perticulars":"wrwer","AddressOfCustomer":"wrew`","ContactNumbers":"jhkjhb"}, {"CustomerName":"dd","product":"dfsdfs","perticulars":"fsdfs","AddressOfCustomer":"sdfsdf","ContactNumbers":"fsfsf"}, {"CustomerName":"Pratik","product":"toothbrush","perticulars":"6 inch","AddressOfCustomer":"shreedhama white rose","ContactNumbers":"9949634396"}]
- <table id="example" class="display" align="center" vertical-align="middle"; cellspacing="0" width="100%">
- <thead>
- <tr>
- <th>Customer Name</th>
- <th>Product</th>
- <th>Perticulars</th>
- <th>Address of customer.</th>
- <th>Contact number</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- </tbody>
- <tfoot>
- <tr>
- <th>Customer Name</th>
- <th>Product</th>
- <th>Perticulars</th>
- <th>Address of customer.</th>
- <th>Contact number</th>
- </tr>
- </tfoot>
- </table>
- $.ajax({
- url:'AddQuotation',
- type:'get',
- success:function(data){
- alert(data);
- var resultTable = $('#example').DataTable({
- "columns": [
- { data: "CustomerName" },
- { data: "product" },
- { data: "perticulars" },
- { data: "AddressOfCustomer" },
- { data: "ContactNumbers" }
- ],
- "destroy": true,
- "dom": 'lrtip'
- } );
- resultTable.rows.add(data1).draw();
- dataSet = data;
- },
- error:function(){
- alert('error');
- }
- });
- {"data": [{"CustomerName":"Dinesh","product":"23234","perticulars":"wrwer","AddressOfCustomer":"wrew`","ContactNumbers":"jhkjhb"}, {"CustomerName":"dd","product":"dfsdfs","perticulars":"fsdfs","AddressOfCustomer":"sdfsdf","ContactNumbers":"fsfsf"}, {"CustomerName":"Pratik","product":"toothbrush","perticulars":"6 inch","AddressOfCustomer":"shreedhama white rose","ContactNumbers":"9949634396"}]}
- [enter image description here][1] <tbody>
- @foreach (var item in Model.HRMS_Tbl_ExpenseClaimModelList)
- {
- <tr>
- @if (item.Approved == "1")
- {
- <td>@item.Date</td>
- <td>@item.Date</td>
- <td>@item.Type</td>
- <td>@item.Amount</td>
- }
- </tr>
- }
- </tbody>
- TO:
- <tbody>
- @foreach (var item in Model.HRMS_Tbl_ExpenseClaimModelList)
- {
- if (item.Approved == "1")
- {
- <tr>
- <td>@item.Date</td>
- <td>@item.Date</td>
- <td>@item.Type</td>
- <td>@item.Amount</td>
- </tr>
- }
- }
- </tbody>
Add Comment
Please, Sign In to add comment