SyntaxFix
Write A Post
Hire A Developer
Questions
hope it will work
@Html.DropDownList("accountid", (IEnumerable<SelectListItem>)ViewBag.Accounts, String.Empty, new { @class ="extra-class" })
Here String.Empty will be the empty as a default selector.
String.Empty