ASP.NET MVC - Load Partial View using ajax with progress indicator - Visual Studio 2013 MVC 5

Introduction :In any web technology, AJAX is important to load the data without refresh hole page.on other hand we will load data on request so the main page load will be faster than loading all data on page load.In this article I will show how to load MVC Partial view using ajax and how to show progress image or message by callback.
What is Different between partialviews ajax Loading and partialview direct Rendering?
If you render the partial view directly without using ajax technologies, its will loaded on your page (view) load, this will decrease your system performance so in some cases you can avoid this performance issue by load the partial view and render it only on request.

Assume that you are going to create user profile and this profile contains the skills,and education information beside user Information.
In this case you can create each profile section in partial view and then load it on request.
Don't forget to show "loading" or progress message or indicator for users during ajax call request.

Check the source code.
 Hope its helpful.

Comments

Popular posts from this blog

How to remove (.aspx) from ASP.NET web forms page url using Friendly URL package.

Create (post) JIRA ticket (Issue) with rest API using C# ASP.NET