I have something like the following in an ASP.NET MVC application:
IEnumerable list = GetTheValues(); var selectList = new SelectList(list, \"S
Try this
ViewBag.Items = list.Select(x => new SelectListItem() { Text = x.ToString() });