摘要:
@Html.CheckBox和@Html.CheckBoxFor这两个方法一直没有用好,为了尽快多个CheckBox并且可以回传数据,使用了下面的办法,怎么看怎么觉得笨,不过先这样吧:在View页中:<div class="dropdownlist-field"> @if (Model != null) { foreach (var item in Model.lstUserRole) { if (item.bCheck) { <input type="checkbox" id="checkboxRole" name 阅读全文
posted @ 2011-07-15 16:02
Vanessa
阅读(16819)
评论(3)
推荐(1)