Asp.net MVC Site.master and Razor Switch

I recently converted a project to visual studio 2010, then to mvc 3 and now converted the views to razor views.

Everything works fine, but I notice that I can not get rid of site.master and replace it with _layout ....

Every time I start a site, the default page is always displayed by site.master, even if I see that it calls a controller that uses a view that uses _layout.cshtml

I am wondering if there is a file anywhere in the file that says that MasterPage is site.master by default?

+5
source share
1 answer

, _ViewStart.cshtml .

@{
    Layout = "~/Views/Shared/_Layout.cshtml"
}

, site.master ( ). .

+4

All Articles