title: pass data-icon attributes in razor html helper
body: <p>I want to following html code using asp.net mvc 3 razor html helper:</p>
  
  <pre><code>&lt;input type="text" .... .   placeholder="Login" data-icon="user" /&gt;
  </code></pre>
  
  <p>I have try this one:</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.UserName, new { placeholder = "Login", data-icon = "user" })
  </code></pre>
  
  <p>or</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.UserName, new { placeholder = "Login", @data-icon = "user" })
  </code></pre>
  
  <p>Displayed Error:</p>
  
  <pre><code>Invalid anonymous type members declaration.
  </code></pre>
  
  <p>This might due to dash in data-icon not taken as attributes. How could I add data-icon attributes in text box field.</p>