I am using MVC. I want to pass the category data I entered from my view and passed to my Post/ Createcontroller, but it\'s not\'s letting me pass my categoryTypeID that I ha
You are defining your SelectList
twice, in your controller as well as in your view.
Keep the view clean. Just the following would be enough in your case:
@Html.DropDownListFor(model => model.CategoryTypeID, (SelectList)ViewBag.CategoryTypes)
I have to admit that DropDownListFor is quite confusing in the beginning :)