How do I convert a textbox type to password in asp.net mvc?
Either use the HTML helper function Password:
Password
<%= Html.Password("Password") %>
or use the type parameter on an input field:
type
See listings 4 and 5 on this page