<div class="col-md-10"> @*@Html.EditorFor(model => model.hobbies, new { htmlAttributes = new { @class = "form-control" } })*@ @Html.LabelFor(model => model.hobbies, "Cricket") @Html.CheckBoxFor( model=>model.hobbies,"Cricket") @Html.LabelFor(model => model.hobbies, "Singing") @Html.CheckBoxFor(model => model.hobbies, "Singing") @Html.LabelFor(model => model.hobbies, "Reading") @Html.CheckBoxFor(model => model.hobbies, "Reading") @Html.LabelFor(model => model.hobbies, "Dancing") @Html.CheckBoxFor(model => model.hobbies, "Dancing") @Html.ValidationMessageFor(model => model.hobbies, "", new { @class = "text-danger" }) </div>
hobbies
bool
CheckBoxFor
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)