Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含复选框的强类型 ViewModel。
当我在控制器中处理更新时,我需要确定该项目是否已被检查。
我该怎么做呢???
[HttpPost] public ActionResult Update(MyViewModel viewModel) { var isChecked = viewModel.ThePropertyUsedWithYourCheckBoxFor; }
或者,我错过了什么?