Property names in C# cannot contain the "
-
" character. The workaround is to use the "
_
" character instead, which the MVC helper should then convert to a "
-
" in the rendered markup:
@Html.TextBoxFor(Model => Model.Topic, new { @class = "form-control Topic", data_validate = "email", placeholder = "Enter Topic", required = "required" })