im using mvc form to give user possibility of changing his data in database. Everything is fine except password. When im getting Password value from database controller passes it into view, but view is not displaying it.
<div class="editor-field">
<%: Html.PasswordFor(model => model.Password) %>
<%: Html.ValidationMessageFor(model => model.Password) %>
</div>
I can save the password but its never displayed inside view. Anyway if i change PasswordFor to TextBoxFor it works fine, but i can see password :(
Inside application, i give to user possibility to configure some other function, you can configure your external email account . when view with form is rendered, box with password is empty. If i submit form then, database will save empty password - i dont want to save null in password column, if user dont want to change password, it should be the same as earlier, also i need to avoid showing it to user.