Sending data to the server with fnServerParams and aoData for jquery DataTable does not work in MVC4
I want to send extra data to serverside (ASP.Net MVC4) for my jquery datatable. There are many examples on how to this client side, but I can't get it to work on the serverside. Here's the code: javascript: $(document).ready(function () { var oTable = $('#myDataTable').dataTable({ "bServerSide": true, "sAjaxSource": "SearchPatient/DataHandler", "fnServerParams": function (aoData) { alert('in fnServerParams'); aoData.push( { "name": "more_data", "value": "my_value" } ); } }); }); Note: the alert goes off, so the function itself is working. My model class: /// <summary> /// Class that