后台
var items = new List<SelectListItem>();
items.Add(new SelectListItem() { Text = "Level 1", Value = "1", Selected = (1 == levle ? true : false) });
items.Add(new SelectListItem() { Text = "Level 2", Value = "2", Selected = (2 == levle ? true : false) });
items.Add(new SelectListItem() { Text = "Level 3", Value = "3", Selected = (3 == levle ? true : false) });
ViewData["Hlevel"] = items;
前台
@Html.DropDownList("HiearchyLevel",ViewData["Hlevel"] as List<SelectListItem>)