This question is locked. New answers and comments are not allowed.
Hi All,
I have my cascade combos and it calls the following:
If there happens to be nothing returned then it drops into my catch, however I receive the error invalid JSON. I have also tried return JSON(null); but this also fails.
I have my cascade combos and it calls the following:
[HttpPost] public JsonResult GetDropDownGroup(int? Dropdown_Group, int manufactureID) { //DropDown_Group contains the ID of the model selected. However, we need to obtain Advisory Groups for ALL models with the //selected description, so use the ID only as the initial entry try { return Json(new SelectList(RoadRiskService.GetDropDownGroup(Dropdown_Group, manufactureID), "Id", "Value", JsonRequestBehavior.AllowGet)); } catch { return null; } }