10. History of MVC Pattern Concept of MVC is described in 1979 by TrygveReenskaug (Norway) One of the first version of MVC is implemented in Smalltallk-80 class library
11. Main Idea of MVC Separate view and data source View Model Controller
12. Classic MVC (Active Model) View Handle view events Notify for Changes Controller Get data Model Update data Data Source Mediator
13. Classic MVC (Passive Model) View Handle view events Notify for Changes Get data Controller Model Update data Data Source Mediator
14. MVP View Handle view events Put data Presenter Update data Get data Model Mediator
15. MVP: Key Differences with Classic MVC Presenter knows all about View Presenter communicates with data source directly Events in Model and View removed Presenter implements main presentation logic Presenter is mediator between Model and View
17. ASP.NET Web Forms Key Versions ASP.NET 4.0 2010 ASP.NET 3.5 2007 ASP.NET 2.0 2005 ASP.NET 1.0 2002 ASP 1998
18. ASP.NET MVC Key Versions ASP.NET MVC 3 2011 ASP.NET MVC 2 2010 ASP.NET MVC 1 2009 ASP.NET
19. ASP.NET Components Web Forms View Engine Razor View Engine ASP.NET Web Forms ASP.NET MVC ASP.NET Core Caching Pages Handlers Roles Modules Controls Profile Security Globalization Master Pages Membership Etc.
47. When we do not need MVC? I need MVC, because … it is better than Web Forms … it implements MVC architecture … I want to escape from view state … I donot want automatically generated id in HTML … I want to get full control over HTML … I want more friendly URLs
48. MVC Benefits Automated testing Powerful AJAX client side Flexibility, extensibility, clarity Easy of learning and easy of using Clearly separated client side and server side
49. MVC Disadvantages Speed of development (particularly in early stages) … but you can win when you make changes in finished product