How do I convert a textbox type to password in asp.net mvc?
below is extention based on html helper:
before converting:
@Html.TextBox("mypass", null, new { style = "width: 200px;" })
After converting:
@Html.Password("mypass", null, new { style = "width:200px;" })
hope helps someone.