Quantcast
Viewing latest article 22
Browse Latest Browse All 50

Re: Multiple submit buttons with ASP.NET MVC: final solution

Hey Andrey,
Great solution for rerouting the Actions on partial views. I have mine wired up and working well except for one problem. I'm wondering if you have an idea how I might go about solving it.
My partial view uses a different model than the parent view. When I submit using the partial view button, it appears that it always try's to submit the parent model to the controller action. I get errors because the action is getting the wrong model and the model it's expecting is null.
What do you think is the best way to ensure the submit button will only submit the route values/parameters/model that I need on that particular view/form?


Viewing latest article 22
Browse Latest Browse All 50

Trending Articles