3. Contents
About MVC Pattern
ASP.NET Platform
Sample Application
ASP.NET MVC Project Concepts
ASP.NET MVC Key Features
MVC vs WebForms
Conclusion
5. History of MVC Pattern
Concept of MVC is described in 1979 by Trygve
Reenskaug (Norway)
One of the first version of MVC is implemented in
Smalltallk-80 class library
6. Main Idea of MVC
Separate view and data source
View
Model Controller
7. Classic MVC (Active Model)
View
Notify for
Changes
Get data
Controller
Model
Mediator
Data Source
10. 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
12. 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
13. ASP.NET MVC Key Versions
ASP.NET MVC 3
2011
ASP.NET MVC 2
2010
ASP.NET MVC 1
2009
ASP.NET
14. ASP.NET Components
Web Forms View Engine Razor View Engine
ASP.NET ASP.NET
Web Forms MVC
ASP.NET Core
Pages Caching Handlers Roles
Controls Modules Security Profile
Master Pages Globalization Membership Etc.
36. Unit Testing
Using
Testable
Inversion of Control
Application
principle
Can be tested:
– Controllers
– Routes
– Html helpers
– UI Models
– View logic
– Etc.
37. MVC Control Libraries
Client Side Controls Server Side Controls
JQuery IU Telerik
DOJO DevExpress
Etc. Etc.
39. 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 do not want automatically generated id in
HTML
… I want to get full control over HTML
… I want more friendly URLs
40. 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
41. MVC Disadvantages
Speed of development
(particularly in early stages)
… but you can win when you
make changes in finished product