You can do:
<% = Html.DropDownList("Filter", new SelectList(Model.Items, "Id", "Name", 0), "Please Select", new { @id = "Filter", @class = "autoComplete1" })%>
Its a bit long to read, but the signature of the method:
DropDownList(name, IEnumerable<SelectListItem>, optionLabel, htmlAttributes)
source
share