Tuesday, September 1, 2009

Displaying Jquery Progress using ASP.NET MVC with Ajax


JQuery is a lightweight JavaScript library and can be downloaded from http://www.jquery.com. The jQuery library is also included in the Scripts folder of the Visual Studio ASP.NET MVC template. You can increase the performance by using google hosted AJAX Libraries. Google hosted AJAX Libraries can be found here http://code.google.com/apis/ajaxlibs/. Here is an excellent article about Test Drive of the Google Hosted Ajax Libraries.


I will modify my previous article to implement jquery progress that will make application more responsive. The AjaxOptions includes an OnBegin, OnComplete and OnSuccess property. An instance of the AjaxOptions class is passed to the Ajax.BeginForm() helper method as shown below in our view.

Using the code

Here is my view:

See full detail: http://www.codeproject.com/KB/ajax/Displaying_Jquery_Progres.aspx

No comments: