0

I have a strongly typed ViewModel which contains check boxes.

When I am processing in my Controller for an update, I need to find out whether the item has been checked or not.

How do I go about doing that???

1 Answer 1

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

Or, am I missing something?

Sign up to request clarification or add additional context in comments.

1 Comment

I added a boolean column in my model to take care of this... if (template.IsChecked == true)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.