title: asp.net mvc textboxfor hide text for password entry
body: <p>How do I set the <code>TextBoxFor</code> to hide the text when user types in a password?</p>
  
  <pre><code>@Html.TextBoxFor(model =&gt; model.Password.CurrentPassword, new { @class = "form-control", @placeholder = "Current Password", autocomplete = "off", name = "nconfirm" })
  </code></pre>