To allow GET requests, set JsonRequestBehavior to AllowGet

You have simple typo/syntax error

return Json(new { total = total, data = data,JsonRequestBehavior.AllowGet });

The JsonRequestBehavior.AllowGet is the second parameter of Json – it shouldnt be part of the object

return Json(new { total = total, data = data }, JsonRequestBehavior.AllowGet);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)