title: How do I add placeholder text from the model into a MVC view?
body: <p>I have a model:</p>
  
  <pre><code>[DataType(DataType.EmailAddress)]
  [DisplayFormat(ConvertEmptyStringToNull = true)]
  [Display(Prompt = "Email Address")]
  public string Email { get; set; }
  </code></pre>
  
  <p>I am trying to get the "prompt" to show in the placeholder text of the resulting text box with the following:</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.Email, 
  new { htmlAttributes = new { @class = "form-control input-md",
  placeholder = @ViewData.ModelMetadata.Watermark } })
  </code></pre>
  
  <p>When I view the generated HTML I only get "placeholder" in the input tag. According to what I have read ViewData.ModelMetadata.Watermark should work. What is the correct way to get this placeholder text in place?</p>