Tag Archives: razor

Understanding ASP.NET MVC fundamentals

In a standard ASP.NET project with MVC you have a basic structure which is the separation of the Models / Views / Controllers.

In the Views folder you have two key files, the _ViewStart.cshtml special file which is where the views start up. By default it defines the shared layout all the views are going to use, which leads us to the second key file Shared\_Layout.cshtml. This file is the base site layout (if you know Web Forms you can think of it as a Master Page). Your views are going to be rendered inside this base view where it calls @RenderBody() which is going to render your view.
Continue reading

Advertisements