Well, this seems really odd to me (why is the error hidden so deeply in the cavernous recesses of CDT?), but when I go to the Network tab and 2-click the "GetTestSettingVals" checklistbox item in the "Name" section in Chrome Dev Tools, it opens a new page that tells me,
"The parameters dictionary contains a null entry for parameter 'RptID' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.JsonResult GetTestSettingVals(System.String, Int32, System.String, System.String, System.String, System.String, Int32, Int32)' in 'WebAppRptScheduler.Controllers.TestSettingsController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters"
But why is that value null? I'm giving it a value:
...which is in the "data" part of the ajax:
- data: { unit: unitval, report: reportId, . . .
"RptID" is the C# name of the second arg passed to the Controller method:
- public JsonResult GetTestSettingVals(string unit, int RptID, . . .
So, thanks, this gets me on the right track, but I'm confused as to how the value of "1" became null.