Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I want some suggestions from you people. Actually i have developed one MVC application and in that application i am having multiple menu so on menu click i am calling View with POST Verb Method using jQuery Ajax and showing it, so can someone suggest me that using POST Verb method to load view using Ajax is good or should i always GET method and how much difference it will make between these two in all respect?

Thanks in Advance!!!!

Thanks
Raviranjan
Posted
Comments
Shridhar Gowda 9-Feb-15 2:11am    
Hi, Use Get method if you are not passing any data to server(Or simple and small data). As Get is faster compared to Post. Post is preferred when you are posting large data to server (or if it is sensitive and you don't want to show it on browser's URL).

It depends on your purpose and amount of data you are sending to server.

For example, you definitely don't want to send blobs of data through GET request because, some browser has character limits over GET. Again, in case of sensitive data say, login credentials, you must have to use POST.

Following is a good post about it... Might be helpful.

http://javascript.about.com/od/ajax/a/ajaxgp.htm[^]
 
Share this answer
 
Hi,

Thanks for your quick reply. Actually, i don't have to send any data, just i have to load the view using Ajax call so i was thinking POST will be somewhat better than GET.

Thanks
Raviranjan
 
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