Why is my AJAXoned Action's return not being seen as successful by the caller?
问题 In my ASP.NET MVC app, I've got this AJAX call in my View's script section: $(".ckbx").change(function () { . . . $.ajax({ type: 'GET', url: '@Url.Action("GetUnitReportPairVals", "Home")', data: { unit: unitval, report: rptval }, cache: false, success: function (result) { alert(result); } }); }); Stepping through the Controller action being called: public ActionResult GetUnitReportPairVals(string unit, string report) { HomeModel model = new HomeModel(); int rptId = GetReportIDForName(report);