title: HtmlAttributes on ASP.NET MVC 3 with Razor view in VB.Net
body: <p>Can anybody tell me how do I add this htmlAttribute on MVC 3 Razor view?</p>
  
  <pre><code>New With {.watermark = "sometext", .title = "sometext"}
  </code></pre>
  
  <p>I tried the C# way but it's not working (@watermark) but it's not working.</p>
  
  <p>Thanks.</p>
  
  <p>UPDATE here is the current usage I am trying but it's not working.</p>
  
  <pre><code>  @Html.EditorFor(Function(model) model.FirstName, New With {.maxlength = "50"})
  </code></pre>
  
  <p>This isn't working either</p>
  
  <pre><code> @Html.EditorFor(Function(model) model.FirstName, New Object() {"maxlength=50"})
  </code></pre>
  
  <p>Bear in mind that I am doing this on vb.net.
  PLEEASE HELP!</p>