What is ASP.NET MVC
-
date post
21-Oct-2014 -
Category
Technology
-
view
543 -
download
2
description
Transcript of What is ASP.NET MVC
![Page 1: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/1.jpg)
What is ASP.NET MVC?
A better way to build the web.
![Page 2: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/2.jpg)
MVC Pattern
![Page 3: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/3.jpg)
ASP.NET MVC Goals
• Leverage ASP.NET core features• Loose coupling and extensibility• Testability• Tight control over markup• Separation of concerns• Convention over configuration• Better team development• Strong community of web developers
![Page 4: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/4.jpg)
How it works.
![Page 5: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/5.jpg)
How it works.
![Page 6: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/6.jpg)
How it works.
![Page 7: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/7.jpg)
How it works.
![Page 8: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/8.jpg)
How it works.
![Page 9: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/9.jpg)
Life of a Http Request
![Page 10: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/10.jpg)
How MVC is typically built.
Models- contains the bulk of your application logic. (ie. db
access, security, aggregations, etc )- possibly your Entity Framework model, Linq2SQL, a
repository, or a service layer.
![Page 11: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/11.jpg)
How MVC is typically built.
Views- contains html, styling and JavaScript for the
application layout and pages. - may also contain Ajax calls that get\post data for
Async features. - Other client-side frameworks could be used here, like
jQuery, BackBone.js, Knockout.js
![Page 12: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/12.jpg)
How MVC is typically built.
Controllers- this is the application’s entry point, which handles
the http requests (Actions) and any required parameters.
- for best practices, “Actions” in a controller should be as minimal as possible.
![Page 13: What is ASP.NET MVC](https://reader036.fdocuments.in/reader036/viewer/2022062613/5445faa9afaf9fe72a8b46f4/html5/thumbnails/13.jpg)
Why it’s better.
• Open source: http://aspnetwebstack.codeplex.com/
• NuGet.org (9000+ nuget packages)• Embraces html5 & javascript• Active community (stackoverflow, github)• Learned from other successes (Rails, Zend)