How to call a controller action by jQuery

With jQuery you are able to invoke an action of a Asp .Net MVC application’s controller.
This is the code you need:

You can establish the request type (GET, SET and so), whether the request should be asynchronous or not (parameter async true or false), whether the request should be cached or not (parameter cache), a Javascript function to be called in case of success of the server request (parameter success) or in case of request fails (parameter error).
The parameter “data” of the function called in case of success contains the return value by the server call.

However there are many others useful parameters you can use. For a complete list go here. It’s also possible to make the same call but with a Json return value by the $.getJSON funtion.

74 thoughts on “How to call a controller action by jQuery

  1. Pingback: psy-
  2. Pingback: psy online
  3. Pingback: uels ukrain
  4. Pingback: DPTPtNqS
  5. Pingback: qQ8KZZE6
  6. Pingback: D6tuzANh
  7. Pingback: SHKALA TONOV
  8. Pingback: chelovek-iz-90-h
  9. Pingback: 3Hk12Bl
  10. Pingback: 3NOZC44
  11. Pingback: 01211
  12. Pingback: tor-lyubov-i-grom
  13. Pingback: film-tor-2022
  14. Pingback: hd-tor-2022
  15. Pingback: hdorg2.ru
  16. Pingback: Psikholog
  17. Pingback: netstate.ru
  18. Pingback: Link
  19. Pingback: psy
  20. Pingback: bit.ly
  21. Pingback: cleantalkorg2.ru
  22. Pingback: bucha killings
  23. Pingback: War in Ukraine
  24. Pingback: Ukraine
  25. Pingback: sildenafil
  26. Pingback: viagra
  27. Pingback: site
  28. Pingback: sildenafil citrate
  29. Pingback: stats
  30. Pingback: revatio
  31. Pingback: Ukraine-war
  32. Pingback: movies
  33. Pingback: gidonline
  34. Pingback: viagra generic
  35. Pingback: web
  36. Pingback: film.8filmov.ru
  37. Pingback: video
  38. Pingback: film
  39. Pingback: filmgoda.ru
  40. Pingback: rodnoe-kino-ru
  41. Pingback: stat.netstate.ru
  42. Pingback: sY5am
  43. Pingback: Dom drakona
  44. Pingback: JGXldbkj
  45. Pingback: aOuSjapt
  46. Pingback: ìûøëåíèå
  47. Pingback: psikholog moskva
  48. Pingback: Dim Drakona 2022
  49. Pingback: TwnE4zl6
  50. Pingback: psy 3CtwvjS
  51. Pingback: lalochesia
  52. Pingback: film onlinee
  53. Pingback: 3qAIwwN
  54. Pingback: video-2
  55. Pingback: sezons.store
  56. Pingback: psy-news.ru
  57. Pingback: 000-1
  58. Pingback: 3SoTS32
  59. Pingback: 3DGofO7

Comments are closed.