How to get password html helper to render password on failed validation
Posted
by Max Schmeling
on Stack Overflow
See other posts from Stack Overflow
or by Max Schmeling
Published on 2010-06-06T16:58:29Z
Indexed on
2010/06/06
17:02 UTC
Read the original article
Hit count: 144
I have a form for creating a new account and it has a password field in it. I'm using view models to pass data to the controller action and back to the form view. When the user enters their details in, and clicks submit, if validation fails and it returns them to the same view passing back in the view model, it won't default the password to what they entered.
How can I get it to do this? Or should I even try?
© Stack Overflow or respective owner