Link to home
Start Free TrialLog in
Avatar of Anderson Meneses
Anderson MenesesFlag for Afghanistan

asked on

Performance Html.BeginForm vs jQuery

There are any gain of performance or other advantages to do my POST request using ajax jQuery instead of do this requests using Html.BeginForm with a button to submit this request to server?
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

AJAX is to do background operations without refreshing the page. The question on what to use is around usability - not performance.

If you are going to stay on the same page but need to send (and receive) data from the server then AJAX is the way you do it. If you are going to end up re-rendering the page after sending data to the server then there is not much motivation for using AJAX
Avatar of Anderson Meneses

ASKER

How can I implement AntiForgeryToken and ValidationMessageFor using jQuery? Do you have a sample ?
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial