예제 #1
0
 public ActionResult AjaxHandler(jQueryDataTableParamModel param)
 {
     return Json(new{
         sEcho = param.sEcho,
         iTotalRecords = 97,
         iTotalDisplayRecords = 3,
         aaData = new List<string[]>() {
             new string[] {"Test1", "A101", "2000", "2010", "Tier1"},
             new string[] {"Test2", "A102", "2002", "2008", "Tier2"},
             new string[] {"Test3", "A103", "2003", "2007", "Tier3"}
             }
     },
     JsonRequestBehavior.AllowGet);
 }