Convert textbox type to password in asp.net mvc
Just write in Razor View i.e. in .cshtml file below line
@Html.PasswordFor(m=>m.Password)
Here m is model object and password is the password field name.
You mean <%=Html.Password("test")%>
?
Just write in Razor View i.e. in .cshtml file below line
@Html.PasswordFor(m=>m.Password)
Here m is model object and password is the password field name.
You mean <%=Html.Password("test")%>
?