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

Re: Type password with editor for 80 80

You don't know how to do this, yet your signature advertises you as an ASP.Net Developer. Do you see the problem here?

commented: In their profile, 50-99 employees. I guess this company does not work well together. +15
Re: Type password with editor for 80 80

I have tried password for but it makes changes to web design

You can fix this with CSS.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.