My error msg:

<td>@Html.DropDownListFor(model => model.listVendor_Id, Model.listVendor_Id)

CS1061: 'System.Collections.Generic.IEnumerable<PWIMS.ViewModel.POViewModel>' does not contain a definition for 'listVendor_Id' and no extension method 'listVendor_Id' accepting a first argument of type 'System.Collections.Generic.IEnumerable<PWIMS.ViewModel.POViewModel>' could be found (are you missing a using directive or an assembly reference?)

The listVendor_Id after "Model." wasa underline in red. How to solve this?

Recommended Answers

All 2 Replies

If Model is the class, and model is the instance, use model instead.

I think you should Write the controller Code
TO help You

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.