Ajax.BeginForm()
- Won't redirect the form even you do a
RedirectAction()
. - Will perform save , update and any modification operations asynchronously.
- Validate the Form using
FormMethods - OnSubmit
. So you are abort thePost
- This creates a form that submits its values using an asynchronous ajax request. This allows a portion of the page to be update without requiring that the entire page be refreshed.
- Ajax.BeginForm() creates a form that submits its values using an asynchronous ajax request. This allows a portion of the page to be update without requiring that the entire page be refreshed.
Html.BeginForm()
- Will redirect the form.
- Will perform operations both
Synchronously
andAsynchronously
(With some extra code and care). - Html.BeginForm will always use RouteTable to detrmine the action attribute value.
- This will create a form on the page that submits its values to the server as a synchronous HTTP request, refreshing the entire page in the process.
- Html.BeginForm() will create a form on the page that submits its values to the server as a synchronous HTTP request, refreshing the entire page in the process.
No comments:
Post a Comment