ViewBag.User = new SelectList(context.Users, "UserName", "UserName");
@Html.DropDownList("UserName", (IEnumerabl<SelectListItem>)ViewBag.User, "Select User")
@Html.DropDownList("UserName", ViewBag.User, "Select User")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)