【发布时间】:2011-02-19 01:43:53
【问题描述】:
我有两个选择
一个
<%= Html.CheckBox("postType", false, new { @id = item.int_PostTypeId.ToString() })%>
第二
<input type="checkbox" name="postType" value="<%= item.int_PostTypeId.ToString() %>
第一个问题: 这两种复选框声明方法有什么区别。
第二个问题: 以及我们如何获得选中复选框的值?
【问题讨论】:
标签: asp.net asp.net-mvc checkbox