I know this has been discussed a lot of times.
I'd like to use
@Html.EditorFor(u => u.Password, new { required = "required" })
Unfortunatley this isn't possible by default as the EditorFor overwrites the Html attributes.
I don't want to use TextBoxFor because I'd like the value to be formatted according to the DisplayFormat attribute.
Is there any solution for this?
overwrites the HTML attributes?