title: .NET MVC Masking Password textboxes
body: <p>I was under the impression that using an annotation like this:</p>
  
  <pre><code>&lt;Required()&gt;
  &lt;DisplayName("Choose a Password:")&gt;
  &lt;ValidatePasswordLength()&gt;
  &lt;DataType(DataType.Password)&gt;
  Public Property Password As String
  </code></pre>
  
  <p>Would create a masked field when used in the view:</p>
  
  <pre><code>&lt;%: Html.TextBoxFor(Function(model) model.Password) %&gt;
  &lt;%: Html.ValidationMessageFor(Function(model) model.Password) %&gt;
  </code></pre>
  
  <p>However this is rendered without the type="password"</p>
  
  <p>What is the "DataType.Password" used for if not this?</p>