I was under the impression that using an annotation like this:
<Required()>
<DisplayName("Choose a Password:")>
<ValidatePasswordLength()>
<DataType(DataType.Password)>
Public Property Password As String
Would create a masked field when used in the view:
<%: Html.TextBoxFor(Function(model) model.Password) %>
<%: Html.ValidationMessageFor(Function(model) model.Password) %>
However this is rendered without the type="password"
What is the "DataType.Password" used for if not this?