Guest User

Guest User

  • Tech Writer
  • 189
  • 25k

Internal Server Error

May 11 2018 3:18 AM
  1. $(document).ready(function () {  
  2.         //getting Error in this line
  3.        var oTable = $('#myTable').DataTable({
  4.          
  5.            ajax: {  
  6.                type: 'Post',  
  7.                url:'@Url.Action("ClientProductList", "ClientMaster")',
  8.                contentType: "application/json; charset=utf-8",  
  9.                datatype: 'json',  
  10.                
  11.                    },  
  12.                        columns: [  
  13.                            { data: 'CLProductId', autowidth: true },  
  14.                            { data: 'ProductId', autowidth: true },  
  15.                            { data: 'ProductName', autowidth: true },  
  16.                            { data: 'ClientProductDetail', autowidth: true },  
  17.                            { data: 'ParentProductId', autowidth: true },  
  18.                            { data: 'Act_Date',autowidth: true },  
  19.                            { data: 'Exp_Date', autowidth: true },  
  20.                            {  
  21.                                "data""CLProductId"'bSortable'false,  
  22.                                'aTargets': -1, "width""50px""render"function (data) {  
  23.                                    return '<a class="popup btn btn-info text-center" href="/ClientProduct/EditProduct/' + data + '">Edit</a>';  
  24.                                }  
  25.                            },  
  26.                            {  
  27.                                "data""CLProductId"'bSortable'false,  
  28.                                'aTargets': -1, "width""50px""render"function (data) {  
  29.                                    return '<a class="popup btn btn-danger text-center" href="/ClientProduct/DeleteProduct/' + data + '">Delete</a>';  
  30.                                }  
  31.                            }  
  32.   
  33.                        ]  
  34.   
  35.                    });  
  36.                })  
  37.     

Answers (2)