Click here to Skip to main content
15,887,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 30-Oct-16 18:06pm

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900