Austin Agile DevOps

DevOps in the Cloud
posts - 70 , comments - 7 , trackbacks - 0

March 2013 Entries

Retain and Set Posted Checkbox Value in the MVC 4 Controller
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 ......

Posted On Monday, March 11, 2013 10:27 AM | Comments (1) |

Using the DIR command in the TFS 2010/12 Team Build Invoke Process Activity
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 ......

Posted On Tuesday, March 5, 2013 7:59 AM | Comments (0) |

Powered by: