Model does not apply DataType.Password

后端 未结 2 811
臣服心动
臣服心动 2021-01-17 12:47

Instead of using the object directly, on a simple Razor View I have a form using as it+s model a decorator object.

public class GlobalAccount
{
         


        
2条回答
  •  感动是毒
    2021-01-17 13:45

    You should use Html.Password, or even better use Html.EditorFor which will read the DataType.Password and output a password type input for you.

    The Html.TextBoxFor is just text based input, not as password based one.

提交回复
热议问题