While binding dropdown in MVC, I always get this error: There is no ViewData item of type \'IEnumerable\' that has the key country.
There is no ViewData item of type \'IEnumerable\' that has the key country
Replace "country" with "countrydrop" in your view like this...
"country"
"countrydrop"
@Html.DropDownList("countrydrop", (IEnumerable)ViewBag.countrydrop,"Select country")