public ActionResult City(int areaId) { if (Request.IsAjaxRequest() && areaId > 0) { string show = "<option value=\"0\">--请选择详细地址--</option>"; var list = publishService.GetCitys(areaId); var json = from p in list select string.Format("<option value=\"{0}\">{1}</option>", p.CityId, p.CityName); return(Json(show + string.Join("", json), JsonRequestBehavior.DenyGet)); } else { return(new ContentResult() { Content = "Access Forbidden!" }); } }