I believe this is a bug where only the checkbox value is not retained when passing the model from the view to a post method. Model public bool CoreField { get; set; } View @model List<Model> @Html.CheckBoxFor(m => m[i].CoreField, new { @id = "cbCoreField" + i })@Html.HiddenFor(m => m[i].CoreField) @Html.Hidden("fIsCore", null, new { @id = "hIsCore" + i }) //has to use separate list instead of model due to MVC bug Note the use of “fIsCore” as a separate list used to pass changes to the ......
I found that using a loop activity to build up a filtered list clutters up the build report with repetitions of activities inside the loop. I could write a custom activity to create the list. However, rather than have to write and maintain code, it’s possible to use the DOS DIR command in the Invoke Process activity. First, because there is no dir.exe file, you must execute a windows shell. I used “cmd” as the FileName value. Then in the Arguments value I use the shell /c switch followed by the DIR ......