Presentation is loading. Please wait.

Presentation is loading. Please wait.

Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research.

Similar presentations


Presentation on theme: "Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research."— Presentation transcript:

1 Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research

2 Agenda  What is MVC?  Model  View  Controller  What is new in MVC5?  Demo  Why use MVC?  MVC5 vs Web Forms

3 What is MVC5?  Software development pattern defined in the 1970s  Makes use of interfaces, abstract classes, virtual methods and some psuedo-AOP (Aspect-Oriented Programming)  Part of ASP.NET  Hands-on development experience  Consists of 3 main interchangeable components: Model, View, Controller  Actions handled by Routing Engine

4 Model  A model is a C# or VB.NET class  A model is accessible by both controller and view  A model can be used to pass data from Controller to view  A view can use model to display data in page.

5 View  View is an ASPX page without having a code behind file  All page specific HTML generation and formatting can be done inside view  Can use Inline code (server tags ) to develop dynamic pages  A request to view (ASPX page) can be made only from a controller’s action method

6 What’s new in MVC5?  One ASP.NET  ASP.NET Identity  Bootstrap  Authentication filters  Filter overrides  Attribute routing

7 Controller  Controller is a C# or VB.NET class which inherits system.mvc.controller  Controller is a heart of the entire MVC architecture  Inside Controller’s class action methods can be implemented which are responsible for responding to browser OR calling views.  Controller can access and use model class to pass data to views  Controller uses ViewData to pass any data to view

8 Demo  This is an awesome blank slide the says I’m doing a demo.

9 Why MVC5?  The MVC separation helps you manage complex applications.  Easy to develop test  Can leverage multiple views of data  Well-suited for large development teams  Working with methods, not files  Multiple views on the same data  URL are naturally SEO friendly  Not working with the page lifecycle  Less letters!

10 MVC vs Web Forms MVC  Allows for separation of concerns  Allows fine controller of generated HTML  Easier to develop unit tests  No View State  More control over more aspects of the application  Easy to implement SEO URLs Web Forms  Simpler design  Well-suited for smaller teams  Great support for data-heavy applications  Rich control libraries and 3 rd party controls  IDE geared for pattern  More aspects maintained by underlying architecture  Supports state of application

11 More Info  ASP.NET Intro to MVC5 http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting- started http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting- started  Scott Hansalman’s 5 minute intro to MVC http://www.asp.net/mvc/videos/mvc-2/how-do-i/5-minute- introduction-to-aspnet-mvc http://www.asp.net/mvc/videos/mvc-2/how-do-i/5-minute- introduction-to-aspnet-mvc  Thom Robbin’s Intro to MVC5 http://devnet.kentico.com/articles/getting-started-with-visual- studio-2013-and-asp-net-mvc-5?feed=DevNet-Articles-RSS http://devnet.kentico.com/articles/getting-started-with-visual- studio-2013-and-asp-net-mvc-5?feed=DevNet-Articles-RSS


Download ppt "Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research."

Similar presentations


Ads by Google