2012-09-30 57 views

回答

1
[HttpPost]  
public ActionResult Update(MyViewModel viewModel) 
{ 
    var isChecked = viewModel.ThePropertyUsedWithYourCheckBoxFor; 
} 

或者說,我失去的東西嗎?

+0

我在我的模型中添加了一個布爾列來照顧這個...... if(template.IsChecked == true) – sagesky36

相關問題