how to call datatables on load in mvc C# code example Example: datatable load data from ajax JS { $('#myTable').DataTable( { ajax: '/api/myData' } );