SlideShare une entreprise Scribd logo
1  sur  24
www.dev-one.com
Fabian Vilers
Twitter: @fvilers
Hands onASP.NET MVC
Dev One is your dedicated partner
providing high quality experts on
architecture, development, and
testing roles on IT projects using
Microsoft .NET technologies.
Visit us on:
http://www.dev-one.com
We will help your enterprise to build a state
of the ar t solution using the latest available
technologies so you can rapidly deploy your
applications and ser vices.
Our proven experience, and a deep
understanding of your business, will help us
to you reduce your IT development costs
and let your employees concentrate on your
core business.
We are aimed at providing consultancy
exper ts on architecture, development, and
testing roles, especially using the .NET
technologies and the Microsoft ecosystem.
With more than 10 years of multiple IT
development experiences, we have forged a
set of skills through various project &
missions in several activity sectors that
enables us to deliver you high quality
ser vices.
ABOUT DEV ONE
ASP.NET MVC – Hands on 2
 Presentation
 What is MVC?
 MVC on the web today
 ASP.NET MVC
 Timeline
 Comparison with ASP.NET web forms
 What web forms does well
 Where web forms doesn’t fit
 ASP.NET MVC believes
 Should you fear ASP.NET MVC?
 The MVC pattern
 Model
 View
 Controller
 What’s new in ASP.NET MVC 3
 Demos
 Q & A
ASP.NET MVC – Hands on 3
AGENDA
4ASP.NET MVC – Hands on
PRESENTATION
 The MVC pattern is 30+ years old!
 It is a powerful and elegant means of separating concerns
 It makes it easier to test application
 It promotes parallel development thanks to the loose
coupling between the three main components
ASP.NET MVC – Hands on 5
WHAT IS MVC?
 Ruby on Rails
 Django and Python
 Spring, Struts and Java
 Zend Framework and PHP
 MonoRail
 …
ASP.NET MVC – Hands on 6
MVC ON THE WEB TODAY
 Separation of application tasks (input logic, business logic,
and UI logic), testability, and test-driven development (TDD)
by default
 An extensible and pluggable framework
 A powerful URL-mapping component that lets you build
applications that have comprehensible and searchable URLs
 Convention over configuration
 Don’t repeat yourself, keep it simple (DRY/KISS principles)
ASP.NET MVC – Hands on 7
ASP.NET MVC
ASP.NET MVC – Hands on 8
TIMELINE
• ScottGu sketched
out the core of
ASP.NET MVC
(~100 lines of
code)
February 2007
• Presenstation of
Scalene at the
Austin ALT.NET
conference
September
2007 • First Community
Technology
Preview
December 2007
• ASP.NET MVC 1.0
March 2009
• ASP.NET MVC
source code was
released under
the MS-PL
April 2009
• ASP.NET MVC 2.0
• Shipped with
Visual Studio 2010
March 2010
• ASP.NET MVC 3.0
• Shipped with
Visual Studio 2010
January 2011
9ASP.NET MVC – Hands on
COMPARISON WITH
ASP.NET WEB FORMS
 Represent a Page as control tree
 Give these server-side controls events like their desktop
counterparts
 Hide as much HTTP and HTML as is reasonable
 Make state management as transparent as possible
ASP.NET MVC – Hands on 10
WHAT WEB FORMS DOES WELL
 ViewState is powerful, but it has its drawbacks (weight,…)
 Page life cycle can be a nightmare
 Limited control over HTML
 Client IDs and the ctl00$ContentPlaceHolder1$UserControl1$TextBox1
syndrome
 It’s nearly impossible to run a Web Form through its life
cycle outside IIS
ASP.NET MVC – Hands on 11
WHERE WEB FORMS DOESN’T FIT
 Guiding tenets:
 Be extensible, maintainable, and flexible
 Be testable
 Get out of the user’s way when necessary
 Serving methods, not files
 Separation of concerns
 ScottHa said: « ASP.NET MVC is Web Forms unplugged »
ASP.NET MVC – Hands on 12
ASP.NET MVC BELIEVES
 ASP.NET MVC is built on top of ASP.NET
 ASP.NET MVC is not a replacement for anything
 It is just an alternative
 It’s a totally different approach
SHOULD YOU FEAR ASP.NET MVC?
ASP.NET MVC – Hands on 13
14ASP.NET MVC – Hands on
THE MVC PATTERN
 Model
 objects are the parts of the
application that implement
the logic for the application’s
data domain
 View
 components that display the
application’s user interface
 Controller
 components that handle user
interaction, work with the
model, and ultimately select a
view to render
ASP.NET MVC – Hands on 15
THE MVC PATTERN
 Business logic and validation of the application’s data
domain
 Totally independant from the views or the controllers
 Model state can be stored in memory, database, XML files,…
ASP.NET MVC – Hands on 16
MODEL
 Application’s user interface using data from the model
 No interaction with the models or the controllers
 Views can be strongly typed
 Almost no code
ASP.NET MVC – Hands on 17
VIEW
 Handle user interaction
 Query the model
 Select the right view to render
ASP.NET MVC – Hands on 18
CONTROLLER
19ASP.NET MVC – Hands on
WHAT’S NEW IN
ASP.NET MVC 3
 Razor View Engine
 Support for multiple view engine
 Global action filters
 « ViewBag » property
 New « ActionResult » types
 JavaScript and AJAX improvements
 Client-side validation enabled by default
 Remote validator
 JSON binding support
 Data annotations metadata attributes
 Validation interfaces
 Dependency injection improvements
 Partial-Page Output Caching
 Granular Control over Request Validation
 …
ASP.NET MVC – Hands on 20
WHAT’S NEW IN ASP.NET MVC 3
21ASP.NET MVC – Hands on
DEMOS
 Using the ASP.NET MVC 3 template and playing around with
Razor
 First data access and display a list of authors
 Manage authors
 Display a list of books
 Create and edit a book using the ViewModel pattern
 Source code available on: http://vil.rs/qK3rMG
ASP.NET MVC – Hands on 22
BOOK STORE
23ASP.NET MVC – Hands on
Q & A
ASP.NET MVC – Hands on 24

Contenu connexe

Tendances

ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC PresentationVolkan Uzun
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.netConcetto Labs
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training sessionHrichi Mohamed
 
ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemSaBin SaleEm
 
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantNitin Sawant
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcUmar Ali
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1Umar Ali
 
Introduction To Asp.Net Mvc
Introduction To Asp.Net MvcIntroduction To Asp.Net Mvc
Introduction To Asp.Net MvcRishu Mehra
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Umar Ali
 
Introduction to mvc architecture
Introduction to mvc architectureIntroduction to mvc architecture
Introduction to mvc architectureravindraquicsolv
 
Reactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen StoyanchevReactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen StoyanchevVMware Tanzu
 
Journey Through The Javascript MVC Jungle
Journey Through The Javascript MVC JungleJourney Through The Javascript MVC Jungle
Journey Through The Javascript MVC JungleBaris Aydinoglu
 
Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web apiUmar Ali
 
MVC Seminar Presantation
MVC Seminar PresantationMVC Seminar Presantation
MVC Seminar PresantationAbhishek Yadav
 
ASP.NET MVC4 Overview
ASP.NET MVC4 OverviewASP.NET MVC4 Overview
ASP.NET MVC4 OverviewMahmoud Tolba
 

Tendances (20)

ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.net
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training session
 
ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin Saleem
 
Asp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin SawantAsp.net mvc presentation by Nitin Sawant
Asp.net mvc presentation by Nitin Sawant
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
 
Introduction To Asp.Net Mvc
Introduction To Asp.Net MvcIntroduction To Asp.Net Mvc
Introduction To Asp.Net Mvc
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Introduction to mvc architecture
Introduction to mvc architectureIntroduction to mvc architecture
Introduction to mvc architecture
 
MVC & backbone.js
MVC & backbone.jsMVC & backbone.js
MVC & backbone.js
 
Reactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen StoyanchevReactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen Stoyanchev
 
Journey Through The Javascript MVC Jungle
Journey Through The Javascript MVC JungleJourney Through The Javascript MVC Jungle
Journey Through The Javascript MVC Jungle
 
Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
 
ASP.NET MVC 4 Introduction
ASP.NET MVC 4 IntroductionASP.NET MVC 4 Introduction
ASP.NET MVC 4 Introduction
 
MVC Seminar Presantation
MVC Seminar PresantationMVC Seminar Presantation
MVC Seminar Presantation
 
Asp.net mvc 4
Asp.net mvc 4Asp.net mvc 4
Asp.net mvc 4
 
ASP.NET MVC4 Overview
ASP.NET MVC4 OverviewASP.NET MVC4 Overview
ASP.NET MVC4 Overview
 
Understanding ASP.NET MVC
Understanding ASP.NET MVCUnderstanding ASP.NET MVC
Understanding ASP.NET MVC
 

Similaire à Asp.netmvc handson

Programming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCProgramming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCIan Carnaghan
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayLanate Drummond
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesAaron Jacobson
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologiesHosam Kamel
 
Modern ASP.NET Webskills
Modern ASP.NET WebskillsModern ASP.NET Webskills
Modern ASP.NET WebskillsCaleb Jenkins
 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot netneha sharma
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC IntroductionSumit Chhabra
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overviewSergey Seletsky
 
Head first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttHead first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttLanvige Jiang
 
Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?Mike Brown
 
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5  Building Your First Web Application (A Beginner S GuideASP.NET MVC 5  Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5 Building Your First Web Application (A Beginner S GuideAlicia Buske
 
Spring tutorials
Spring tutorialsSpring tutorials
Spring tutorialsTIB Academy
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9AHM Pervej Kabir
 

Similaire à Asp.netmvc handson (20)

Programming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVCProgramming is Fun with ASP.NET MVC
Programming is Fun with ASP.NET MVC
 
MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing Essay
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologies
 
Mvc3 part1
Mvc3   part1Mvc3   part1
Mvc3 part1
 
Modern ASP.NET Webskills
Modern ASP.NET WebskillsModern ASP.NET Webskills
Modern ASP.NET Webskills
 
Mvc
MvcMvc
Mvc
 
An overview of microsoft mvc dot net
An overview of microsoft mvc dot netAn overview of microsoft mvc dot net
An overview of microsoft mvc dot net
 
ASP.NET MVC Introduction
ASP.NET MVC IntroductionASP.NET MVC Introduction
ASP.NET MVC Introduction
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
 
Head first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rttHead first asp.net mvc 2.0 rtt
Head first asp.net mvc 2.0 rtt
 
Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?
 
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5  Building Your First Web Application (A Beginner S GuideASP.NET MVC 5  Building Your First Web Application (A Beginner S Guide
ASP.NET MVC 5 Building Your First Web Application (A Beginner S Guide
 
Spring tutorials
Spring tutorialsSpring tutorials
Spring tutorials
 
Asp 1a-aspnetmvc
Asp 1a-aspnetmvcAsp 1a-aspnetmvc
Asp 1a-aspnetmvc
 
Aspnetmvc 1
Aspnetmvc 1Aspnetmvc 1
Aspnetmvc 1
 
Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9Asp.net c# MVC-5 Training-Day-1 of Day-9
Asp.net c# MVC-5 Training-Day-1 of Day-9
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 

Dernier

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 

Dernier (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 

Asp.netmvc handson

  • 2. Dev One is your dedicated partner providing high quality experts on architecture, development, and testing roles on IT projects using Microsoft .NET technologies. Visit us on: http://www.dev-one.com We will help your enterprise to build a state of the ar t solution using the latest available technologies so you can rapidly deploy your applications and ser vices. Our proven experience, and a deep understanding of your business, will help us to you reduce your IT development costs and let your employees concentrate on your core business. We are aimed at providing consultancy exper ts on architecture, development, and testing roles, especially using the .NET technologies and the Microsoft ecosystem. With more than 10 years of multiple IT development experiences, we have forged a set of skills through various project & missions in several activity sectors that enables us to deliver you high quality ser vices. ABOUT DEV ONE ASP.NET MVC – Hands on 2
  • 3.  Presentation  What is MVC?  MVC on the web today  ASP.NET MVC  Timeline  Comparison with ASP.NET web forms  What web forms does well  Where web forms doesn’t fit  ASP.NET MVC believes  Should you fear ASP.NET MVC?  The MVC pattern  Model  View  Controller  What’s new in ASP.NET MVC 3  Demos  Q & A ASP.NET MVC – Hands on 3 AGENDA
  • 4. 4ASP.NET MVC – Hands on PRESENTATION
  • 5.  The MVC pattern is 30+ years old!  It is a powerful and elegant means of separating concerns  It makes it easier to test application  It promotes parallel development thanks to the loose coupling between the three main components ASP.NET MVC – Hands on 5 WHAT IS MVC?
  • 6.  Ruby on Rails  Django and Python  Spring, Struts and Java  Zend Framework and PHP  MonoRail  … ASP.NET MVC – Hands on 6 MVC ON THE WEB TODAY
  • 7.  Separation of application tasks (input logic, business logic, and UI logic), testability, and test-driven development (TDD) by default  An extensible and pluggable framework  A powerful URL-mapping component that lets you build applications that have comprehensible and searchable URLs  Convention over configuration  Don’t repeat yourself, keep it simple (DRY/KISS principles) ASP.NET MVC – Hands on 7 ASP.NET MVC
  • 8. ASP.NET MVC – Hands on 8 TIMELINE • ScottGu sketched out the core of ASP.NET MVC (~100 lines of code) February 2007 • Presenstation of Scalene at the Austin ALT.NET conference September 2007 • First Community Technology Preview December 2007 • ASP.NET MVC 1.0 March 2009 • ASP.NET MVC source code was released under the MS-PL April 2009 • ASP.NET MVC 2.0 • Shipped with Visual Studio 2010 March 2010 • ASP.NET MVC 3.0 • Shipped with Visual Studio 2010 January 2011
  • 9. 9ASP.NET MVC – Hands on COMPARISON WITH ASP.NET WEB FORMS
  • 10.  Represent a Page as control tree  Give these server-side controls events like their desktop counterparts  Hide as much HTTP and HTML as is reasonable  Make state management as transparent as possible ASP.NET MVC – Hands on 10 WHAT WEB FORMS DOES WELL
  • 11.  ViewState is powerful, but it has its drawbacks (weight,…)  Page life cycle can be a nightmare  Limited control over HTML  Client IDs and the ctl00$ContentPlaceHolder1$UserControl1$TextBox1 syndrome  It’s nearly impossible to run a Web Form through its life cycle outside IIS ASP.NET MVC – Hands on 11 WHERE WEB FORMS DOESN’T FIT
  • 12.  Guiding tenets:  Be extensible, maintainable, and flexible  Be testable  Get out of the user’s way when necessary  Serving methods, not files  Separation of concerns  ScottHa said: « ASP.NET MVC is Web Forms unplugged » ASP.NET MVC – Hands on 12 ASP.NET MVC BELIEVES
  • 13.  ASP.NET MVC is built on top of ASP.NET  ASP.NET MVC is not a replacement for anything  It is just an alternative  It’s a totally different approach SHOULD YOU FEAR ASP.NET MVC? ASP.NET MVC – Hands on 13
  • 14. 14ASP.NET MVC – Hands on THE MVC PATTERN
  • 15.  Model  objects are the parts of the application that implement the logic for the application’s data domain  View  components that display the application’s user interface  Controller  components that handle user interaction, work with the model, and ultimately select a view to render ASP.NET MVC – Hands on 15 THE MVC PATTERN
  • 16.  Business logic and validation of the application’s data domain  Totally independant from the views or the controllers  Model state can be stored in memory, database, XML files,… ASP.NET MVC – Hands on 16 MODEL
  • 17.  Application’s user interface using data from the model  No interaction with the models or the controllers  Views can be strongly typed  Almost no code ASP.NET MVC – Hands on 17 VIEW
  • 18.  Handle user interaction  Query the model  Select the right view to render ASP.NET MVC – Hands on 18 CONTROLLER
  • 19. 19ASP.NET MVC – Hands on WHAT’S NEW IN ASP.NET MVC 3
  • 20.  Razor View Engine  Support for multiple view engine  Global action filters  « ViewBag » property  New « ActionResult » types  JavaScript and AJAX improvements  Client-side validation enabled by default  Remote validator  JSON binding support  Data annotations metadata attributes  Validation interfaces  Dependency injection improvements  Partial-Page Output Caching  Granular Control over Request Validation  … ASP.NET MVC – Hands on 20 WHAT’S NEW IN ASP.NET MVC 3
  • 21. 21ASP.NET MVC – Hands on DEMOS
  • 22.  Using the ASP.NET MVC 3 template and playing around with Razor  First data access and display a list of authors  Manage authors  Display a list of books  Create and edit a book using the ViewModel pattern  Source code available on: http://vil.rs/qK3rMG ASP.NET MVC – Hands on 22 BOOK STORE
  • 23. 23ASP.NET MVC – Hands on Q & A
  • 24. ASP.NET MVC – Hands on 24