return list from view to controller via viewmodel

Posted by user232076 on Stack Overflow See other posts from Stack Overflow or by user232076
Published on 2010-05-05T13:22:44Z Indexed on 2010/05/05 13:28 UTC
Read the original article Hit count: 188

Filed under:
|

I have a controller that takes in a viewmodel and submitbutton public ActionResult AddLocation(AddLocationViewModel viewModel, string submitButton)

My view is bound to the viewmodel. The viewmodel contains a list objects used to create an html table with checkboxes. Is there a way to access the selected "rows" through the viewmodel in my controller? So that I can iterate through and get the selected items?

Thanks LDD

© Stack Overflow or respective owner

Related posts about viewmodel

Related posts about checkboxes