Convert textbox type to password in asp.net mvc

后端 未结 11 2518
感情败类
感情败类 2020-12-18 18:13

How do I convert a textbox type to password in asp.net mvc?

11条回答
  •  清酒与你
    2020-12-18 18:27

    Either use the HTML helper function Password:

    <%= Html.Password("Password") %>
    

    or use the type parameter on an input field:

    
    

    See listings 4 and 5 on this page

提交回复
热议问题