Modèle:passant modèle dans la case à cocher?
[DisplayName("waiting for activation")]
public string Awaiting { get; set; }
ASPX:
<div class="field forCheckbox">
<%:Html.CheckBoxFor(model=>model.Awaiting)%>
<%:Html.LabelFor(model=>model.Awaiting) %>
<%:Html.ValidationMessageFor(model=>model.Awaiting) %>
</div>
note: Son est un groupe de cases à cocher. sauf cette valeur de case à cocher tous les autres sont bool.
erreur: cannot convert convert bool to string
?
Comment faire?
votre classe complète publier modèle, il peut aider – hunter