代码:
索引.cshtml
<div class ="">
<input id="date" type="checkbox" />Date<br /><br />
</div>
页眉.cshtml
@Html.ActionLink("Add", "Action", "Controller", new
{date = ??}, new
{
@class = "hidden",
@Id = "tasks"
})
如何在来自另一个cshtml页面的cshtml页面中的日期参数(true(如果选中)或false(如果未选中))中分配复选框值?