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

Recommended Answers

All 2 Replies

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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.