_Layout replaces Site.Master and basically functions the same way. As the framework generates the html file, it pulls in _Layout and the .cshtml file that's requested by the Controller.
>Hi,
>I am looking at the training video (Pluralsight) on APS.NET MVC Basics (produced in 2009) the demo project. The Views folder has Home folder and Shared folder. The Home folder is clear, it has view files for each view the project needs.
>
>The Shared folder has page Site.Master which is the master page used by all views.
>
>In the current version of VS 2012, when I create a test ASP.NET MVC project, the Shared folder has file _Layout.cshtml.
>
>What is the purpose of _Layout.cshtml?
>
>And does it mean that VS 2012 does not automatically create file Site.Master (master page for the project) and I have to create it manually?
>
>TIA
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer