Umbraco and MVC
MVC, or, Model-View-Controller is an architectural pattern that’s been around since the 70’s that helps split your website code into three main layers, Model, View, and Controller. MVC is a big step up over traditional .NET web forms. MVC pattern forces a separation of concerns within your website, that makes testing, maintaining and writing code easier. MVC helps to separate your C# logic from you HTML, CSS and JS presentation code.
Umbraco allows you to build your website with either MVC or Webforms, even though web forms is so inferior companies are still using is.. if you are new to Umbraco then my advice is… DO NOT USE WEB FORMS FOR NEW PROJECTS! Umbraco MVC can even be configured to work with ASP.NET Web Forms side by side and you can switch between them from request to request. If you have inherited an old Umbraco website and you don’t want to start from scratch, you can slowly refactor it, into a more modern architecture.
The main difference between Umbraco MVC and traditional .NET MVC is that Umbraco adds some special hooks and routes into the MVC pipeline that allows it to render Umbraco virtual pages, instead of pages based on controllers and actions. Umbraco MVC can be configured to work with standard MVC controllers and actions is you want it to, so it really is a very powerful platform that will allow you to do pretty much anything you can in a standard MVC website combined with the power of what Umbraco can deliver.
1. What Is Route Hijacking In Umbraco
2. How To Add Your Own Controller and View Model In Umbraco
3. What Is An Umbraco Surface Controller?
4. How To Use MVC Partials In Umbraco
5. How To Enable The Global.asax in Umbraco
6. How To Create a Master Template In Umbraco?
7. How To Create A Custom Template in Umbraco 7 with MVC
8. How To Create A Global View Model For Your Umbraco Layout File
9. How To Create A Global View Model For Umbraco With uSitebuilder