1
Hello I’m using the Data Annotation ASP.NET MVC in C#, but I’m not getting past ASP.NET data-toggle
in the helper CheckBoxFor
:
@Html.CheckBoxFor(model => model.ReceberEmail,
new { @class ="form-control", @data-toggle ="toggle"})
In my Model the code is as follows:
[Display(Name = "Receber Emails ?")]
public virtual Boolean ReceberEmail { get; set; }
Would you have some way of passing that parameter through Data Annotation?
I already did, just change - by _ (under line) sometimes it’s some silly things that hold us in the code
– Marcos Brinner
Mark, write an answer to your question.
– Jéf Bueno
Oops, I had answered the same thing, but removed, reply there
– PauloHDSousa
@LINQ , answered here, I marked as correct, grateful.
– Marcos Brinner