ASP MVC s/mvc-4/getting-started-with- aspnet-mvc4/intro-to-aspnet- mvc-4.

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.
{ Model View Controller ASP.NET By Scott Crooks & Maggie Wettergreen.
Introducing Mapbuilder Michael Adair Natural Resources Canada.
Razor. Slide 2 Remember this? Browser Web Server HTTP Request HTTP Response (Web page / code) Client code (script) Interpret request Generate HTML and.
1 Software Testing and Quality Assurance Lecture 32 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
06 | Implementing Web APIs Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
TimeTracker 2, Take 1  Servlets Web Interface (jsp) Servlet (business logic and processing) App Engine Datastore Form Submit R/W.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
UNIT-V The MVC architecture and Struts Framework.
Web Development Methodologies Yuan Wang(yw2326). Basic Concepts Browser/Server (B/S) Structure Keywords: Browser, Server Examples: Websites Client/Server.
INTRODUCTION TO WEB DATABASE PROGRAMMING
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
DR.JOHN ABRAHAM PROFESSOR UTPA ASP.NET. ACTIVE SERVER PAGES (ASP) Web application development environment Web applications use web browser to display.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
ASP.NET and Model View Control Jesper Tørresø ITNET2 F08.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
Building Secure Web Applications With ASP.Net MVC.
ASP NET MVC Soup-to-Nuts Peter
Model View Controller MVC Web Software Architecture.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
Getting started with ASP.NET MVC Dhananjay
Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
CS 4720 Model-View-Controller CS 4720 – Web & Mobile Systems.
MVC WITH CODEIGNITER Presented By Bhanu Priya.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
Web Services An Introduction Copyright © Curt Hill.
The basics of knowing the difference CLIENT VS. SERVER.
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
How Web Database Architectures Work CPS181s April 8, 2003.
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:
Virtual techdays INDIA │ 9-11 February 2011 SESSION TITLE Kamala Rajan S │ Technical Manager, Marlabs.
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.
Thomas Burleson. Using MVC with Flex & Coldfusion Projects June 27, 2007 See how Coldfusion MVC is similar to Flex MVC…
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Jim Fawcett CSE686 – Internet Programming Spring 2014
Introduction to .NET Florin Olariu
Jim Fawcett CSE686 – Internet Programming Spring 2012
Social Media And Global Computing Introduction to The MVC Pattern
ASP MVP Web applications and Razor
ASP.NET MVC Introduction
Model View Controller
Server Concepts Dr. Charles W. Kann.
Haritha Dasari Josue Balandrano Coronel -
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.
REST.
Model View Controller in the ASP World
Lecture 1: Multi-tier Architecture Overview
Model-View-Controller (MVC) Pattern
Web Application Architectures
Tiers vs. Layers.
Web Application Architectures
Developing a Model-View-Controller Component for Joomla
An Introduction to JavaScript
ASP.NET MVC Imran Rashid CTO at ManiWeber Technologies.
Client-Server Model: Requesting a Web Page
ASP.NET and Model View Control
Web Application Architectures
Introduction to ASP.NET MVC
Presentation transcript:

ASP MVC s/mvc-4/getting-started-with- aspnet-mvc4/intro-to-aspnet- mvc-4

Slide 2 Introduction (1) MVC (Model View Controller) uses a common design (architectural) pattern to build web applications We could have an endless talk about design patterns Refer to the GOF It’s not a new concept. MVC was introduced in the 1970

Slide 3 Introduction (2) The model gets requests from the controller and sends back data The model knows things The view gets data from the control and is responsible for rendering The view shows the things the model knows The model implements application logic

Slide 4 Introduction (3) The controller plays the largest role It sends requests to the model and gets back data That data is passed on to the appropriate view It gets and interprets requests from clients It gets commands from the users and tells the view what to show and the model what to do

Slide 5 MVC and ASP MVC 4 is the version supplied with VS 2012 MVC 5 is supplied with VS 2013

Slide 6 MVC and ASP You can use Razor to build the user interface We can also use ASP forms It’s a very different beast than ASP.NET Web forms There is no view-state for example MVC and Web Forms can be used in the same application

Slide 7 Reasons to use MVC Easy to test Component-based Modules are very plug and play There is no view state or server forms It’s up to you

Slide 8 Reasons NOT to use MVC It’s complicated You must live in the MVC structure

Slide 9 MVC The Model From Wikipedia

Slide 10 MVC (URLs) You are used to URLs pointing to a physical resources An HTML document An aspx file Or something…. URLs work much differently in MVC We route names to physical URLs By default, the parts of a URL are special If this sounds restful – it is.

Slide 11 MVC Routes (1) Routes provide the mechanism to map URLs into a corresponding call to a controller function Roughly speaking, the format of a route is {controller}/{action}/{id}

Slide 12 MVC Routes (2)

Slide 13 MVC Views Views provide the display engine in the MVC model You create them in two ways As traditional ASP.NET Web forms Using Razor In a sentence, Razor is really not much more than mutated PHP

Slide 14 The MVC Model (2) Model properties and method

Slide 15 MVC Controllers The controller does the work It reads and writes data from the model (via properties and methods It sends data to the view

Slide 16 Create an MVC Application (1)

Slide 17 Create an MVC Application (2)

Slide 18 MVC Application (Structure) First, the system calls Application.Start This sets up the “routings”

Slide 19 Application startup Register routes sets up the default controller We usually need not mess with it