Type password with editor

Hi,

I am creating a form in asp.net mvc

@Html.EditorFor(model => model.Password, new { htmlAttributes = new { @class = "form-control" } })

How to set input type=password in above code.
I have tried password for but it makes changes to web design

Regards.

Comments

Sign In or Register to comment.