Sunday, June 2, 2013

How to Use Master Pages in ASP.NET MVC 3 / MVC 4

In MVC 3 and upwards, with the new Razor view engine you will no longer see the master page is used in default project with an account controller that uses forms authentication.

It still have the concept of master pages through _Layout.cshtml file with Razor support. Check the Shared folder in your project and you'll find the _Layout.cshtml which is used as the master page.

No comments:
Write comments
Recommended Posts × +