开发者

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:

MVC: To-do list checkbox

开发者_如何转开发

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜