Posts

Showing posts from 2012

Partial view and AJAX Form with MVC3 Razor

Image
One of the great advantages of using MVC is the partial view. In real life projects, sooner or later you come across the situations where you need to reuse the already developed thing. For this, in asp.net web forms, Web user control is there. In MVC, It is Partial view.  Partial view can be used as a plug and play user control for reusability. For updating a part of the page, we can use AJAX Form. By using the combination of AJAX form and partial view, we can create ajaxify web application in MVC. It is important to think that where and how you use partial view in your project. The proper structure of folder is also important while designing partial view. In ASP.net MVC application, all views are stored inside the "View" folder. You can keep your partial views in a special folder called "Shared" which is by default provided by the MVC when  you create a new web project of MVC type. B