MVC: To-do list checkbox
I'm developing an app in ASP.NET MVC, and part of it is a to-do list. The image url below shows how it looks and works so far:
What I'd like to accomplish is instead of it displaying true or false for 'completed', i'd like to display a check box which can be checked and then changes the value to true or false in the database.
Use this html helper to display a checkbox:
Html.CheckBoxFor(model => model.yourBooleanField)
精彩评论