Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
@Html.DropDownListFor(u => u.PlantId, new SelectList( configuration_utility.Models.User.getAllplant(),"PlantId","PlantName", 2), new { style = "width:310px" }) plz help me?
Posted
Comments
Sumit_Pathak 4-Mar-14 5:51am    
may be your database coulmn name and bind coulmn both are mismatches.check properly you will get your answer.

1 solution

Here "u" represents your model, check whether your model contains a property for "PlantId"!!, also check if you have declared your model with some other variable or not, because in case of u=>u.PlantId you doen't need to declare your Model
 
Share this answer
 
Comments
joeller 10-Apr-14 13:56pm    
I am having the identical issue. Your solution does not address it. The property referenced is definitely a property of my model.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900