📌  相关文章
📜  返回视图模型后未选中复选框值 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:57.744000             🧑  作者: Mango

代码示例1
@model BlogPostsVM
@using (Html.BeginForm("Index", "yourControllerName", FormMethod.Get))
{
    @Html.LabelFor(m => m.IncludeUserPostsOnly)
    @Html.CheckBoxFor(m => m.IncludeUserPostsOnly)
    
}