Could you please advice me on what this error means:
The ViewData item that has the key "Cat ID" is of type'System.Int32' but must be of type IEnumerble
I'm using entity framework
Could you please advice me on what this error means:
The ViewData item that has the key "Cat ID" is of type'System.Int32' but must be of type IEnumerble
I'm using entity framework
You've just passed one item into your ViewData.In your case Viewdata has got list of items, so you should cast ViewData as a IEnumerable and then get the values from foreach loop.