title: MVC3 - merging htmlAttributes set in View with ones set in Helper
body: <p>I'm using <a href="https://stackoverflow.com/questions/5274407/disable-autocomplete-on-html-helper-textbox-in-mvc">Disable autocomplete on html helper textbox in MVC</a> to add autocomplete to "off" on text boxes:</p>
  
  <pre><code>    public static MvcHtmlString NoAutoCompleteTextBoxFor&lt;TModel, TValue&gt;(this HtmlHelper&lt;TModel&gt; html, Expression&lt;Func&lt;TModel, TValue&gt;&gt; expression, object htmlAttributes)
      {
          return html.TextBoxFor(expression, new { autocomplete = "off" });
      }
  </code></pre>
  
  <p>This is fine if there are no htmlAttributes on the view.  Some of the textfields also have an extra CSS class added to them:</p>
  
  <pre><code>    @Html.NoAutoCompleteTextBoxFor(m =&gt; m.UserName, new { @class = "ignore" })
  </code></pre>
  
  <p>Rather than specifically create another helper for this, is there a way to merge the sets of htmlAttributes?</p>
  
  <p>Thanks in advance...</p>