I have bind drop down list but i have face a issue.
@Html.DropDownListFor(model => model.EducationImageCategoryName, Model.categoryMasters, "--Select Category--", new { @class = "form-control", @required = "required" })
@Html.ValidationMessageFor(model => model.EducationImageCategoryName, "", new { @class = "text-danger", @style = "color:red;!important" })
There is no ViewData item of type 'IEnumerable' that has the key EducationImageCategoryName
Jignesh KumarPosted Sep 26, 2020, 3:00 AM
new SelectList(YourallCategory,"Value","Text","Select Category"), new { @class = "text-danger", @style = "color:red;!important" })Sachin SinghPosted Sep 26, 2020, 3:02 AM
In your Action method you are not passing model object having the property name as EducationImageCategoryName