Would it be possible to make @Html.TextBoxFor(m => EmployeeID), text in the view to be hidden, when typed in. The same functionality as @Html.PasswordFor. There are reasons why I cannot use PasswordFor.
I want the same functionality from my previous post.
ASP.NET MVC3 HtmlPasswordFor how to make it not reset after post methods
EDIT
No, there is no way to hide the values typed in to be hidden, other than using a password type (which doesn’t so much hide them as obscure them). You could set the text color to the same as the background color, but all someone has to do is copy and paste the text out of it. Also, if the textbox is populated on get or post, then they can view source and see the values.
EDIT:
The reason PasswordFor doesn’t populate the the textbox on post is because it’s a security vulnerability. All someone has to do is view source and they can see what’s in it.
If you understand this, and are ok with that. Then you can simply use a standard input password box.