0

In my ASP.Net MVC 3 application I am posting a form from a strongly-typed view to a controller, however I find that some properties in the model are not populated with what was sent in the form.

Upon further investigation, I found out that the DefaultModelBinder ignored some of the properties of the model.

The GetModelProperties method returns the complete PropertyDescriptorCollection, however the BindProperty method was not called for all of those properties. Specifically, it was not called for the enum properties, though I am unsure if this is just a conincidence.

How can this problem be fixed? And if you could also give an explanation as to why this is happening that would be great.

ssilas777
  • 9,672
  • 4
  • 45
  • 68
OJ Raqueño
  • 4,471
  • 2
  • 17
  • 30

0 Answers0