Posted on: 11/7/2013 11:14:55 PM | Views : 637

The first static example everything returns corrrectly when I am using my dynamic example the Json data returns as one string with commas after each value.
public JsonResult GetSite() { var sites = new[] { new {Nome = "site 1" }, new {Nome = "site 3" },new {Nome = "site 4" }, }; return Json(sites, JsonRequestBehavior.AllowGet); } Now I have my Data Dynamically I am pulling from a model.
public JsonResult mystore() { List<string> ChainResultList = ListOfChain(); var sites = new[] { new {Nome = ChainResultList}, }; return Json(sites, JsonRequestBehavior.AllowGet); } But this returns everything as one long string. Or commas after the value. I am assuming that new {Nome = ChainResultList}, needs to be with the new SelectList in o ...

Go to the complete details ...