How to get exra parameter from mvc Json?
How to get exra parameter from mvc Json?
I am trying several hours to get extra parameter from mvc, but no luck.
My idea is to initialize dataTable and get standard parameters with "sAjaxSource" and along than a want to pass aditional parameter (test) to my textbox or someting similar.
...
string test = "";
return Json(new
{
sEcho = param.sEcho,
iTotalRecords = numberOfRecords,
iTotalDisplayRecords = numberOfFiltered,
aaData = result,
test = "testing..."
}, JsonRequestBehavior.AllowGet);
Can anybody help me?
Tnx
My idea is to initialize dataTable and get standard parameters with "sAjaxSource" and along than a want to pass aditional parameter (test) to my textbox or someting similar.
...
string test = "";
return Json(new
{
sEcho = param.sEcho,
iTotalRecords = numberOfRecords,
iTotalDisplayRecords = numberOfFiltered,
aaData = result,
test = "testing..."
}, JsonRequestBehavior.AllowGet);
Can anybody help me?
Tnx
This discussion has been closed.
Replies
Allan
Allan