CheckboxList in MVC3 View and get the checked items passed to the controller
Let’s modify your model a little: public class ItemViewModel { public string Id { get; set; } public string Name { get; set; } public bool Checked { get; set; } } then you could have a controller: public class HomeController: Controller { public ActionResult Index() { // This action is used to render the … Read more