From the discussion below I learned that it is preferrable (besides making the code more maintainable) to use Html.EditorFor over Html.TextBoxFor.
http://stackoverflow.com/questions/31002078/why-validation-is-not-working-with-html-textboxfor-but-is-when-using-html-editor
A more thorough coverage on the differences between EditorFor and TextBoxFor here.
No comments:
Post a Comment