How do I set the TextBoxFor to hide the text when user types in a password?
@Html.TextBoxFor(model => model.Password.CurrentPassword, new { @class = "form-control", @placeholder = "Current Password", autocomplete = "off", name = "nconfirm" })
@Html.Password("password", "", new { id = "password", Textmode = "Password" })
This should help :)
Also, you can specify in your model that this is a password, like the answer in this post shows: asp.net mvc Razor TextBox