This is my js.
$('#tablaDemo').DataTable({
processing: true,
serverSide: true,
ajax: {
type: "POST",
contentType: "application/json; charset=utf-8",
url: "../Paginas/Crmedu_LstCliente.aspx/getDemo",
data: function (d) {
console.log(d);
return JSON.stringify({ parameters: d , dato: "{value: 'Vitmar'}", midat: "Hola mundo"});
}
}
});
and this is my method.
public static void getDemo(object parameters, object dato, string midat)
{
log.Info(String.Format("FORMAT REQ ========== >>>"+midat));
//Request
//var req = DataTableParameters.Get(parameters);
}
as I collect in value
of dato
, without having to create models or something like that, forget about the parameters.
for example midat
if the value arrives. But from the json?