i have this create method, which return list id and name and i pass it to view bag
public ActionResult Create()
{
IList<FirstCategories> objcate = new List<FirstCategories>();
objcate = cat.allcatlistbl();
SelectList list = new SelectList(objcate, "ID", "Name");
ViewBag.DropDownList = list;
return View();
}
on my view i call it like
@Html.DropDownList("DropDownList", ViewBag.DropDownList as SelectList, "Please Select Category");
but drop down list on my view is alway come blank not fill with data please advice