Reputation: 2574
I am asking this question to make sure myself that I understood the subject.
"The only way to have a submit button inside a partial view is using Ajax techniques to submit the form"
Upvotes: 1
Views: 974
Reputation: 102743
Well, technically you could do a normal postback from a partial view. But that would tend to defeat the point of a partial:
So, it's an irregular thing to do a non-AJAX postback from a partial view. But there are scenarios where it would be useful/appropriate. Consider for example a "login" partial: you may want to post the credentials back to a specific controller/action, and have that action redirect back to the current page. In that case you could reasonably use a non-AJAX form.
Upvotes: 3
Reputation: 67193
The only way to have a submit button inside a partial view is using Ajax techniques to submit the form
You didn't say where you got the quote from, but this isn't true.
You submit a form from a partial view in exactly the same way you submit a form within a main view. You can do this using custom fields or by making your partial view strongly typed. Where are you getting hung up?
Upvotes: 1