I know this has been discussed many times.
I would like to use
@Html.EditorFor(u => u.Password, new { required = "required" })
Unfortunatley is not possible by default, because EditorFor overwrites the Html attributes.
I do not want to use TextBoxFor, because I need the value to be formatted according to the DisplayFormat attribute.
Is there any solution for this?
source share