Asp.Net MVC Adnan Masood Jeff Bergman Sean Xiao. Why MVC? Very Clean separation of Concerns Very Clean separation of Concerns Unit Testing Unit Testing.

Slides:



Advertisements
Similar presentations
Introduction to ASP.NET MVC
Advertisements

INTRODUCTION TO ASP.NET MVC AND EXAMPLE WALKTHROUGH RAJAT ARYA EFECS - OIM DAWG – 4/21/2009 ASP.NET MVC.
Fabian Vilers Hands on ASP.NET MVC.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Virtual techdays INDIA │ November 2010 ASP.Net MVC Deep Dive Sundararajan S │ Associate Tech Architect, Aditi Technologies.
AMS304: Introduction to the ASP.NET Model View Controller (MVC) Framework Scott Hanselman Eilon Lipton Microsoft Microsoft
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Ori Calvo, 2010 “If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie,
Jess Chadwick Lead Code Monkey Infragistics Website Team Todd Snyder Development Team Lead Infragistics Experience Design Group.
Ajax Basics The XMLHttpRequest Object. Ajax is…. Ajax is not…. Ajax is not a programming language. Ajax is not a programming language. Ajax is a methodology.
Entity Framework Code First End to End
Dr. Azeddine Chikh IS444: Modern tools for applications development.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
Introduction to ASP.NET MVC Blogging Engine in 60 minutes Adnan Masood
ASP.NET and Model View Control Jesper Tørresø ITNET2 F08.
Todd Snyder Development Team Lead Infragistics Experience Design Group.
Building Web Sites with ASP.NET MVC Framework Noam King CTO Sela College
CS 415 N-Tier Application Development By Umair Ashraf June 28,2013 National University of Computer and Emerging Sciences Lecture # 5 Microsoft MVC3 Architecture.
ASP.NET Model View Controller. About Max  Senior Consultant at Tallan  Certifications  MCSD –.NET  MCTS – SharePoint Application Development  Member.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
MVC A new Web Project Type for ASP.NET. An option. More control over your More control over your A more easily Testable Framework. Not for everyone.
Jean-Claude Trachsel Senior Consultant Trivadis AG Building a Website with ASP.NET MVC.
Tuukka Haapaniemi XForms – What’s the need? HTML forms Very outdated Hard to develop and to maintain Requires lot of work To create basic.
Building Secure Web Applications With ASP.Net MVC.
J. Michael Palermo IV Director of Development Interface, USA WUX203.
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
Christopher M. Pascucci.NET Programming CodeBehind.
2 ASP.NET MVC Scott Hanselman Senior Program Manager Microsoft.
Virtual techdays INDIA │ 9-11 February 2011 Caching Enhancement in ASP.NET 4.0 Abhijit Jana │ Consultant, Microsoft
Getting started with ASP.NET MVC Dhananjay
Date : 3/04/2010 Web Technology Solutions Class: PHP Web Application Frameworks.
Asp.NET Core Server Controls. Slide 2 Lecture Overview Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls.
Introduction  “M” “V” “C” stands for “MODEL” “VIEW” “CONTROLLER”. ASP.NET MVC is an architecture to develop ASP.NET web applications in a different manner.
Scott Guthrie
PostBack  When an initial request for a page (a Web Form) is received by ASP.NET, it locates and loads the requested Web Form (and if necessary compiles.
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Virtual techdays INDIA │ 9-11 February 2011 SESSION TITLE Kamala Rajan S │ Technical Manager, Marlabs.
Testing WebForms w/ Model-View-Presenter Erik Peterson.
Jean-Claude Trachsel Senior Consultant, Trivadis AG The good news.
DotNetNuke® Web Application Framework Michael Washington Socaldug.org – Buena Park, CA
Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
Name Title Microsoft Corporation
Asp.Net Mvc Application with Ajax and Jquery The stunning technology beginning from Microsoft, ASP.NET has from the past few years subjugated the partiality.
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Web Technology Solutions
Jim Fawcett CSE686 – Internet Programming Spring 2014
Introduction to .NET Florin Olariu
An introduction to ASP.Net with MVC Nischal S
Magento Development Company
Jim Fawcett CSE686 – Internet Programming Spring 2012
Social Media And Global Computing Introduction to The MVC Pattern
MVC Architecture, Symfony Framework for PHP Web Apps
ASP.NET MVC Introduction
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
Apache Wicket Component Based Web Development Framework.
Haritha Dasari Josue Balandrano Coronel -
Unit Testing & Test-Driven Development for Mere Mortals
ASP.NET Web Forms Vs. ASP.NET MVC ASP.NET is Microsoft’s big leap after Active Server Pages (ASP), ASP.NET provides flexible and unified web development.
Design and Maintenance of Web Applications in J2EE
CS102 – Bilkent University
DotnetConf 11/17/ :06 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE.
ASP.NEXT The ASP.NET 3.5 Extensions
Basics of MVC MVC වල මුලික කොටස්
ASP.NET Module Subtitle.
Unit Testing & Test-Driven Development for Mere Mortals
ASP.NET MVC Web Development
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Introduction to ASP.NET MVC
Presentation transcript:

Asp.Net MVC Adnan Masood Jeff Bergman Sean Xiao

Why MVC? Very Clean separation of Concerns Very Clean separation of Concerns Unit Testing Unit Testing Model that leads you down a maintainable path (prevent crappy code) Model that leads you down a maintainable path (prevent crappy code) Clean Urls and Html Clean Urls and Html

Front Controller Classic asp.net framework is Page Controller Classic asp.net framework is Page Controller Map Urls to classes/controllers instead of Pages Map Urls to classes/controllers instead of Pages

Unit Testing Mock Objects to simulate responses. Mock Objects to simulate responses. Don’t have to go through a page or view Don’t have to go through a page or view Red/Green Testing Red/Green Testing

Features Routing Routing Controller Controller View View Dependency Injection Dependency Injection Pluggable Pluggable Interfaces for all core contracts Interfaces for all core contracts

Urls Url no longer points to the view/aspx page Url no longer points to the view/aspx page A Url maps to a controller class A Url maps to a controller class Allows more flexibility to map Urls Allows more flexibility to map Urls Url routing engine, Route table Url routing engine, Route table Routes are tokenized strings Routes are tokenized strings Can use RegEx Can use RegEx

Route Examples / / / / Html.Link for creating outbound urls Html.Link for creating outbound urls Html.Link(,, ) Html.Link(,, )

Controller IController IController Execute(IHttpContext ctx, RouteData routeDate) Execute(IHttpContext ctx, RouteData routeDate) class MyController : Controller class MyController : Controller [ControllerAction] attribute [ControllerAction] attribute

Unit Testing Create instance of controller Create instance of controller controller.ViewEngine = new TestViewEngine(); controller.ViewEngine = new TestViewEngine(); Uses Mock Objects Uses Mock Objects

View Similar to existing page Similar to existing page No postback or view state No postback or view state Not all page events will fire Not all page events will fire Editing forms will be more work Editing forms will be more work Separate page for viewing, editing, and updating Separate page for viewing, editing, and updating Ajax will use UserControls as update panels but request still goes through the control Ajax will use UserControls as update panels but request still goes through the control

View View probably shouldn’t directly access data sources or services. View probably shouldn’t directly access data sources or services. Use the ViewData which stores the model the view is rendering Use the ViewData which stores the model the view is rendering ViewPage, ViewPage ViewPage, ViewPage

Future of Asp.Net MVC for the Enterprise MVC for the Enterprise Classic Asp.Net for quicker implementations Classic Asp.Net for quicker implementations

Thanks For Coming! PRIZES!!!! PRIZES!!!! Don’t forget we draw prizes on Sunday afternoon, including great products like Acronis and CodeSmith Tools, plus many new books! Don’t forget we draw prizes on Sunday afternoon, including great products like Acronis and CodeSmith Tools, plus many new books! THANKS AGAIN TO OUR CONTRIBUTORS!!!! THANKS AGAIN TO OUR CONTRIBUTORS!!!! Cal State Fullerton ( Cal State Fullerton ( Spherion ( Spherion ( Microsoft ( Microsoft ( Neudesic ( Neudesic ( PDSA Inc. ( PDSA Inc. ( QuickStart ( QuickStart ( Harbor Objects ( Harbor Objects ( Odyssey Consulting Group ( Odyssey Consulting Group ( IDesign Inc. ( IDesign Inc. (