Ori Calvo, 2010 “If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie,

Slides:



Advertisements
Similar presentations
Testing Web Applications & Services Testing Web Applications & Web Services.
Advertisements

Introduction to ASP.NET MVC
INTRODUCTION TO ASP.NET MVC AND EXAMPLE WALKTHROUGH RAJAT ARYA EFECS - OIM DAWG – 4/21/2009 ASP.NET MVC.
NGT Information Technology Technical Discussion Bob DeHoff Info Tech, Inc.
{ Model View Controller ASP.NET By Scott Crooks & Maggie Wettergreen.
Web Applications Development Using Coldbox Platform Eddie Johnston.
Fabian Vilers Hands on ASP.NET MVC.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
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
Struts 2.0 an Overview ( )
UNIT-V The MVC architecture and Struts Framework.
Ruby on Rails. What is Ruby on Rails? Ruby on Rails is an open source full-stack web framework. It is an alternative to PHP/MySQL. It can render templates,
ASP.NET MVC 3 and Some 4 JaxCodeCamp August 2011.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Ori Calvo, 2010 Hi-Tech College
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
ASP. Net is a rich web framework that leverages well known patterns and JavaScript frameworks to build great web experiences quickly.
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
ASP.NET Web API. ASP.NET Members MS Open Source ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source ASP.NET MVC 4, ASP.NET.
Alcatel-Lucent CDC Workshop, Coaching & Knowledge Transfer Architecture.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Selenium and Selenium on Rails. Agenda  Overview of Selenium Simple Selenium Tests Selenium IDE  Overview of Selenium on Rails  Problems with Selenium.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
.  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection.
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Getting started with ASP.NET MVC Dhananjay
ASP.Net MVC Extensibility, scalability and testability Andrew Locatelli Woodcock.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
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.
ASP.NET MVC An Introduction. What is MVC The Model-View-Controller (MVC) is an architectural pattern separates an application into three main components:
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
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.
2 Architectural Considerations for the ASP.NET MVC Framework Jeffrey Palermo Chief Technology Officer Headspring Systems Austin, TX Session Code: ARC402.
Jean-Claude Trachsel Senior Consultant, Trivadis AG The good news.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research.
Excel Services Displays all or parts of interactive Excel worksheets in the browser –Excel “publish” feature with optional parameters defined in worksheet.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Submitted by: Moran Mishan. Instructed by: Osnat (Ossi) Mokryn, Dr.
Bob German Principal Architect Developing SharePoint Applications with MVC and Entity Framework.
INTRODUCTION TO MVC BY SUHA MNEIMNEH. WHAT’S THE AGENDA What is MVC? MVC components MVC vs web forms vs ASP.NET vocabulary When to create MVC application.
Mobilizing Your SAS® Business Analytic Reports Falko Schulz Sr. Systems Engineer SAS Australia & New Zealand.
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Jim Fawcett CSE686 – Internet Programming Spring 2014
Introducing the Microsoft® .NET Framework
Jim Fawcett CSE686 – Internet Programming Spring 2012
Social Media And Global Computing Introduction to The MVC Pattern
Haritha Dasari Josue Balandrano Coronel -
CO6025 Advanced Programming
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.
ASP.NET Roadmap Mike Ormond Developer & Platform Group Microsoft Ltd
ASP.NEXT The ASP.NET 3.5 Extensions
ASP.NET Module Subtitle.
Back end Development CS Programming Languages for Web Applications
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Back end Development CS Programming Languages for Web Applications
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
Presentation transcript:

Ori Calvo, 2010

“If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie, Corporate Vice President, MicrosoftCorporate Vice President

Objectives Why MVC? ASP.NET MVC In Detail Better Integration Conclusions

Prerequisites ASP.NET Developer Good understanding of HTML and HTTP Good understanding of C# 3.0 Language No MVC Experience is required

Quick Demo Create new MVC Project Create new controller Create new View

Web Development Today Browsing experience everywhere Greater variety of devices and browsers Increasing drive for web standards HTML5 CSS3 Multidiscipline Web Server HTML Generation Data Services Service Orientation

Web Development Today Rich Client Side Experience Did we say HTML5? Easy integration with client side libraries Agile Test Driven Development REST over SOAP Clean URLs Ruby on Rails Year 2004 MVC based Built-in ORM tool

Classical ASP.NET Huge shift at that time Object oriented approach Compiled web pages Stateful UI Event Driven Drag and Drop Designer Windows Forms Developing Experience Is here to stay !!!

What’s wrong with it? Is “Windows Forms” approach suited? Limited control over HTML Encourages mixing of presentation and logic Hard to test ViewState Complex page life cycle Hard to integrate with other libraries

ASP.NET MVC Separation of concerns Built on top of ASP.NET platform Tight control over HTML Designed to be testable Extensible routing system Better integration with 3 rd party libraries Open source Language innovations

Web Platform Installer

MVC Ingredients Routing System Controller Action Filter View Model Model State View Data

Demo Introduction to PhoneBook BL Add GroupController Pass model object to view Add Group.Index View Configure Routing Support clicking Outgoing URL Use ViewData

Routing System Makes your URLs clean and human friendly No correspondence between files and URLs Inbound URL Outgoing URL Implemented by System.Web.Routing.dll Originally shipped with.NET 3.5 SP1 You can use it in your classical ASP.NET 4.0 web pages Was merged into System.Web.dll (starting 4.0)

Controller The controller is the boss Responsible for application logic Receiving user input Work against the domain model Moving the user between different UI Implements IController Single method: Execute Usually derives from Controller

Controller Base Class Action Action result Filters [OutputCache(Duration=600, VaryByParam”*”)] public class DemoController : Controller { public ViewResult ShowGreeting() { return View(“MyView”);}

Controller – Producing Output Types of action results View PartialView Redirect Json JavaScript File Content Others

Demo Submitting data to the controller Use action filters (GET, POST) Model Binding Validation

Controller - Receiving Input Use context objects HttpContext RouteData TempData Implicit model binding Through action parameters Easier to test Explicit model binding Full control

Model Binding Is built from Form RouteData QueryString The DefaultModelBinder Converts strings into.NET objects Uses.NET “Type Converter” facility

Demo Add Master Page Add Partial View

Demo Add Authentication filter Implement custom filter Register global filter

Action Filter Attach reusable behavior Logging Authorization Caching Inject extra logic Great from testing perspective Action filter implements IActionFilter Result filter implements IResultFilter ActionFilterAttribute implements both

Demo – Entity Framework Generate model from DB Implement BL interfaces

Demo - jQuery Unobtrusive JavaScript Partial Refresh Working with JSON Client side templates jQuery UI

Demo - Testing Add test project IoC pattern ControllerBuilder

Questions ?

Conclusions A different way to develop web applications Hopefully, better “Semi” WOW effect Long term benefits Feel natural No rich server control library Be ready to integrate other libraries You must know HTTP and HTML good What about client side MVC?

Read more MVC 3.0 RC is released today !!!

Thank You !!!