This is as per design. Passwords are not filled to prevent accidental resubmits, and to prevent the page from containing unencrypted passwords.
Here is the solution
@Html.PasswordFor(model => model.Password,new{@Value=Model.Password})
OR
@Html.PasswordFor(model => model.Password, new { placeholder = "********" })
This will put some 'visual' asterisks in the input box which will be disappeared when the user starts entering an actual value.
Hope this help!
Like this:
Like Loading...
Related
Published by Rahul Bhatia
Rahul, a self-driven software engineer with a Masters of Computer Application(MCA) degree has a knack for taking up new trends in technology. He has a quest to resolve any technical challenge. He not just codes but understands the deep insights into the technical aspects of any situation. His technical expertise is in Database-driven Web-applications with Web 2.0 User Interface. He also has technical expertise in Web Development technologies.
He topped university in his Master course and received various programming awards. He is a keen learner, passionate programmer and has a good interpersonal and analytical skill set.
Other technical insights - Webservices, Window Service, Ajax, JavaScript, Telerik, Subsonic, Entity Framework, CSLA Architecture, Windows Workflow, API, MVC, .Net core
View all posts by Rahul Bhatia