I do not have idea how to pass the full list by the Ajax. So i have c# list in the cshtml file and I want to pass it to the controller via Ajax. I know how to Pass simple variable, but don't know how to pass full list of objects. there is a simple js script:
$.get("/home/function?List=" + SthList, function (r) {
$("#Table").html(r);
});
It should not work, because SthList
isn't SJ object. But when I want to use razor it does not work anyway.
There is a controller
public ActionResult function(List<Object> List)
{
...
return PartialView(sth);
}
do you have any tips for me?