Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP.NET MVC Baby Steps
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01576485
Message ID:
01576499
Vues:
40
>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

Another confusing part of VS 2012. The article by Scott Guthrie on ASP.NET MVC 3 says that when you create an empty project the layout file _Layout.cshtml is automatically created. Yet when creating a project in VS 2012 no such file is created. Even though when you create a view there is check box (checked by default) - Use a Layout or Mater Page -- Nothing is created by VS.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform