JQuery code:
//This passes NULL for \"CategoryID\", \"CategoryName\", \"ProductID\", \"ProductName\" $(\"#btnPost\").click(function () { var
var a = $("#a").serialize();
var b = $("#b").serialize();
var c = $("#c").serialize();
$.ajax(
{
url: '@Url.Content("~/Controller/Method1")',
type: 'POST',
data: a+b+c,
success: function (success) {
// do something
}
});
// in Controller
[HttpPost]
public ActionResult Method1(abc a, bcd b, xyz c)
{
}
// where abc, bcd xyz are class