Click here to Skip to main content
13,632,490 members
Rate this:
Please Sign up or sign in to vote.
Suppose in a sample application there is a SUBMIT button, and in FORM tag I've alreasdy set POST method. So when I click on submit button it'll automatically execute respective controller's action. This id already there in MVC. Then why do we need AJAX or jQuery for the same purpose, i.e. calling respective controller's action?

I know Ajax call would be asynchrounous, but other than that any other advantage?

What I have tried:

I know about AJAX asynchronous behaviour but we don't want it always, in that case what should we do?
Posted 30-Oct-16 2:32am
Updated 30-Oct-16 18:06pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you don't want to reload the page, then Ajax is the solution. You can send data to server and do everything without a post back.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02-2016 | 2.8.180712.1 | Last Updated 31 Oct 2016
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100