3

I am developing an MVC application (using MVC 4 beta).

I want my site to be responsive similar to google apps which immediately show data with no page refresh showing and quick.

I am looking for a good example where data is saved to the database using ajax calls from the jquery and sending data using json.

any example relevant would be great to get my head around it

thanks

tereško
  • 58,060
  • 25
  • 98
  • 150
tjhack
  • 1,022
  • 3
  • 20
  • 43

1 Answers1

5

There are dozens of examples for this canonical scenario.

Just an example of two to begin with:

  1. http://www.tugberkugurlu.com/archive/working-with-jquery-ajax-api-on-asp-net-mvc-3-0-power-of-json-jquery-and-asp-net-mvc-partial-views

  2. http://shashankshetty.wordpress.com/2009/03/04/using-jsonresult-with-jquery-in-aspnet-mvc/

Ofer Zelig
  • 17,068
  • 9
  • 59
  • 93
  • cheers for the reply. Looking at stackoverflow when you click on a menu item such as tags how is it so quick in bringing data through? – tjhack Feb 27 '12 at 10:31
  • 1
    Their servers are quick, the roundtrip is quick. You can check it in Chrome Dev Tools / FireBug / IE Developer tools / Fiddler. – Ofer Zelig Feb 27 '12 at 10:51