title: Adding a css class to select using @Html.DropDownList()
body: <p>I'm building my first MVC application after years of doing webforms, and for some reason I am not able to make this work: </p>
  
  <pre><code>@Html.DropDownList("PriorityID", String.Empty, new {@class="textbox"} )
  </code></pre>
  
  <p>Error message:</p>
  
  <p><code>System.Web.Mvc.HtmlHelper&lt;SPDR.Models.Bug&gt;</code>' does not contain a definition for <code>DropDownList</code> and the best extension method overload <code>System.Web.Mvc.Html.SelectExtensions.DropDownList(System.Web.Mvc.HtmlHelper, string, System.Collections.Generic.IEnumerable&lt;System.Web.Mvc.SelectListItem&gt;, object)</code> has some invalid arguments</p>
  
  <p>Any help greatly appreciated!</p>