Click here to Skip to main content
13,152,321 members (44,667 online)
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
 
good
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 |
Web03 | 2.8.170924.2 | Last Updated 31 Oct 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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