Checkboxfor MVC is not displayed

2

My question is how can I solve a case with the handling of checkboxfor for my data model I have the following model:

public int Id { get; set; }
[Required(ErrorMessage = "La fecha  no puede estar vacía ")]
public DateTime FechaProcesoRegistro { get; set; }
public bool registraProceso { get; set; }

and in the view this:

<p>
    @Html.LabelFor(model => model.registraProceso)
    @Html.CheckBoxFor(m => m.registraProceso)
</p>

But in the browser I do not see the checkbox box, what can this be?

    
asked by usernovell 30.08.2016 в 15:08
source

1 answer

0

Maybe this can help you, keeping the definition in the model, if it does not show you in the browser, try deleting the browser cache, or finally render the view again

<p>   @Html.LabelFor(model => model.registraProceso)
    @Html.EditorFor(m => m.registraProceso) </p>
    
answered by 15.12.2016 в 15:01