i see there are solutions using different model binders like castl but i didn’t know if the basic default model binder supported nested complex objects when i am posting a form to a controller.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you can if I understand your question.
In the name of my field I not only put the property name but object as well.
So if I have a “Person” object that contains an “Address” object that contains a “State” field I would have as the name “Person.Address.State” and that seems to resolve just fine in my controller.
Is this what you are asking?
EDIT
It does work and here is the code to get it to work.
SNIP