Basics of Layout, View and Partial View in MVC.
In this post we will focus on basics of View section of Model View Controller (MVC) architectural pattern. There are three types of Views in MVC. Layout (Master Page) View (Page) Partial View (User Controller) Layout Layout is used to provide consistent experience to the user in terms of Header Footer and Menus throughout the Application / Website. We can also defined commonly used Stylesheets and Scripts in layout so many views in the application can refer it mean we don't need to to define those Sylesheets and Scripts on every View in the application. So here it clears to us Layout eliminates the duplication code in the View. View View is interface or page though which user can interact with the Application or Website. View displays data from Model/Controller to User. To know more about redirection of views visit here Partial View And the Partial View is View(mark up file) that renders HTML output within another View. So Partial