Last post Jun 06, 2013 08:09 PM by petershaw9
Jun 06, 2013 01:43 AM|petershaw9|LINK
I am using mvc 4.
I want to the view pass it's model to the controller when posting. I found if a class members are not used in form fields, these members' values were not available for for the controller. Is there any way let all data in the model being available to the
Jun 06, 2013 01:49 AM|brijeshvaidya|LINK
take 'not used class members' in form fields into
the view as a hidden fields and then post data.
all the model values will then pass to controller.
Jun 06, 2013 01:49 AM|urenjoy|LINK
Check following example:
Jun 06, 2013 01:50 AM|Wang Xuwen|LINK
Render your unused fields as hidden in your form, then they'll be available when you post back to server:
Jun 06, 2013 04:11 AM|somjet|LINK
use ajax for send all model
Jun 06, 2013 08:09 PM|petershaw9|LINK
Thank you for the help. you said